Commit 14dad342 authored by Leigh Stoller's avatar Leigh Stoller

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)) {
$diskref->removeAttribute("url");
GeniXML::SetText("name", $diskref, $urn);
}
else {
$diskref->removeAttribute("name");
GeniXML::SetText("url", $diskref, $urn);
}
return $diskref;
}
......
Markdown is supported
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