Commit 14dad342 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change SetDiskImage to look for url vs urn and act accordingly.

parent b66c68fd
......@@ -720,7 +720,14 @@ sub SetDiskImage($$)
$diskref = AddElement("disk_image", $type);
GeniXML::SetText("name", $diskref, $urn);
if (GeniHRN::IsValid($urn)) {
GeniXML::SetText("name", $diskref, $urn);
else {
GeniXML::SetText("url", $diskref, $urn);
return $diskref;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment