Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
7ac2f405
Commit
7ac2f405
authored
Sep 17, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IsLocalCluster() predicate.
parent
08d5fd36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
apt/APT_Aggregate.pm.in
apt/APT_Aggregate.pm.in
+8
-0
No files found.
apt/APT_Aggregate.pm.in
View file @
7ac2f405
...
...
@@ -43,6 +43,7 @@ use overload ('""' => 'Stringify');
my
$
TB
=
"@prefix@"
;
my
$
TBOPS
=
"@TBOPSEMAIL@"
;
my
$
OURDOMAIN
=
"@OURDOMAIN@"
;
my
$
MYURN
=
"urn:publicid:IDN+${OURDOMAIN}+authority+cm"
;
#
Protos
sub
STATUS
($$;$);
...
...
@@ -124,6 +125,13 @@ sub DESTROY {
$
self
->{
'AGGREGATE'
}
=
undef
;
}
sub
IsLocalCluster
($)
{
my
($
self
)
=
@
_
;
return
($
self
->
urn
()
eq
$
MYURN
?
1
:
0
);
}
#
#
Refresh
a
class
instance
by
reloading
from
the
DB
.
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment