All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 14dad342 authored by Leigh B Stoller's avatar Leigh B 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