Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
d1952bf2
Commit
d1952bf2
authored
Jul 06, 2012
by
Leigh B Stoller
Browse files
Do not warn about missing VMs in ListUsage().
parent
7d0d70eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
d1952bf2
...
...
@@ -4514,8 +4514,18 @@ sub ListUsage($)
$
node
->{
"component_urn"
}
=
$
component
->
urn
();
}
else
{
print
STDERR
"No component in DB for resource "
.
$
sliver
->
resource_uuid
()
.
"
\n
"
;
#
#
Do
not
warn
about
missing
VMs
.
#
my
$
pnode
=
Node
->
Lookup
($
sliver
->
resource_id
());
if
(
!defined($pnode)) {
print
STDERR
"No node in DB for resource "
.
$
sliver
->
resource_uuid
()
.
"
\n
"
;
}
elsif
(
! $pnode->isvirtnode()) {
print
STDERR
"No component in DB for resource "
.
$
sliver
->
resource_uuid
()
.
": $pnode
\n
"
;
}
}
push
(@
components
,
$
node
);
}
...
...
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