Commit be22c8c3 authored by Leigh Stoller's avatar Leigh Stoller

Allow URLs in tb-set-node-os, as for image_import.

parent ba140d77
......@@ -598,7 +598,8 @@ proc tb-set-hardware {node type args} {
}
proc tb-set-node-os {node os {parentos 0}} {
if {! ${GLOBALS::anonymous} && ! ${GLOBALS::passmode}} {
if {! ${GLOBALS::anonymous} && ! ${GLOBALS::passmode} &&
([regexp {^(ftp|http|https):} $os] == 0) } {
var_import ::TBCOMPAT::osids
if {! [info exists osids($os)]} {
perror "\[tb-set-node-os] Invalid osid $os."
......
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