Commit f33a3fff authored by Leigh B Stoller's avatar Leigh B Stoller

Refuse to import a system image from another cluster, we want the local

admins to do that, so the image is not duplicated into every project.
parent 07e9989a
......@@ -222,6 +222,16 @@ sub MapToLocalImage($$)
}
my $safe_url = GeniUtil::escapeshellarg($url);
#
# If this is a system image and it does not exist locally, do
# we really want to import it into the GeniSlices project? I
# think not, so lets return an error.
#
if ($blob->{'issystem'}) {
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Not allowed to import system image: $urn");
}
# Try to import the descriptor.
system("$IMPORTER -d -p GeniSlices $safe_url");
if ($?) {
......
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