Commit a467f326 authored by Jonathon Duerig's avatar Jonathon Duerig

Process CreateImage credential properly for AMv3

parent 17713029
......@@ -715,13 +715,18 @@ sub Shutdown()
sub CreateImage()
{
my ($slice_urn, $imagename, $sliver_urn, $credentials, $options) = @_;
if (! defined($slice_urn) || ! defined($credentials) ||
my ($slice_urn, $imagename, $sliver_urn, $credential_args, $options) = @_;
if (! defined($slice_urn) || ! defined($credential_args) ||
! defined($sliver_urn) || ! defined($imagename)
|| (! defined($options) && $API_VERSION > 1)) {
return GeniResponse->MalformedArgsResponse("Missing arguments");
}
my $credentials = $credential_args;
if ($API_VERSION >= 3) {
$credentials = FilterCredentials($credential_args);
}
my $args = {
'slice_urn' => $slice_urn,
'sliver_urn' => $sliver_urn,
......
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