Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e11d79be
Commit
e11d79be
authored
May 21, 2015
by
Leigh B Stoller
Browse files
Add a check for missing credential.
parent
db6263f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCMV2.pm.in
View file @
e11d79be
...
...
@@ -375,7 +375,10 @@ sub DiscoverResources($)
if
(
! (defined($credentials))) {
return
GeniResponse
->
MalformedArgsResponse
(
"Missing arguments"
);
}
my
($
credential
,$
speaksfor
,@
morecreds
)
=
GeniStd
::
CheckCredentials
($
credentials
);
my
($
credential
,$
speaksfor
,@
morecreds
)
=
GeniStd
::
CheckCredentials
($
credentials
);
return
GeniResponse
->
MalformedArgsResponse
(
"Missing arguments"
)
if
(
!defined($credential));
return
$
credential
if
(
GeniResponse
::
IsResponse
($
credential
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment