Commit 124a66f6 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fix AMv2 to require the geni_rspec_version option.

parent 14254798
......@@ -197,7 +197,8 @@ sub GetVersion()
sub ListResources()
{
my ($credentials, $options) = @_;
if (! defined($credentials) || ! defined($options)) {
if (! defined($credentials) || ! defined($options)
|| ($API_VERSION > 1 && ! defined($options->{'geni_rspec_version'}))) {
return GeniResponse->MalformedArgsResponse("Missing arguments");
}
my $available = $options->{'geni_available'};
......@@ -207,7 +208,7 @@ sub ListResources()
if ($API_VERSION == 1) {
$version = $options->{'rspec_version'} || undef;
} else {
$version = $options->{'geni_rspec_version'} || undef;
$version = $options->{'geni_rspec_version'};
}
my $xml = undef;
......
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