Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
ec07c10c
Commit
ec07c10c
authored
Jun 25, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix for deleted image node type list.
parent
e86bab66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
db/Image.pm.in
db/Image.pm.in
+6
-2
No files found.
db/Image.pm.in
View file @
ec07c10c
...
...
@@ -1746,17 +1746,21 @@ sub TypeList($;$)
{
my
($
self
,
$
osinfo
)
=
@
_
;
my
@
result
=
();
require
NodeType
;
#
#
Deleted
images
stash
a
list
in
the
descriptor
.
#
if
($
self
->
deleted
())
{
if
($
self
->
nodetypes
())
{
@
result
=
split
(
","
,
$
self
->
nodetypes
());
foreach
my
$
type
(
split
(
","
,
$
self
->
nodetypes
()))
{
my
$
typeinfo
=
NodeType
->
Lookup
($
type
);
push
(@
result
,
$
typeinfo
)
if
(
defined
($
typeinfo
));
}
}
return
@
result
;
}
require
NodeType
;
my
$
imageid
=
$
self
->
imageid
();
my
$
clause
=
(
defined
($
osinfo
)
?
...
...
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