Skip to content
GitLab
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
14dad342
Commit
14dad342
authored
Dec 02, 2014
by
Leigh B Stoller
Browse files
Change SetDiskImage to look for url vs urn and act accordingly.
parent
b66c68fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniXML.pm.in
View file @
14dad342
...
...
@@ -720,7 +720,14 @@ sub SetDiskImage($$)
$
diskref
=
AddElement
(
"disk_image"
,
$
type
);
}
}
GeniXML
::
SetText
(
"name"
,
$
diskref
,
$
urn
);
if
(
GeniHRN
::
IsValid
($
urn
))
{
$
diskref
->
removeAttribute
(
"url"
);
GeniXML
::
SetText
(
"name"
,
$
diskref
,
$
urn
);
}
else
{
$
diskref
->
removeAttribute
(
"name"
);
GeniXML
::
SetText
(
"url"
,
$
diskref
,
$
urn
);
}
return
$
diskref
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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