Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
c5259a31
Commit
c5259a31
authored
Jun 04, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not an error if the user does not exist, when asking for reservation
history.
parent
e59fc714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
protogeni/lib/GeniCluster.pm.in
protogeni/lib/GeniCluster.pm.in
+3
-2
No files found.
protogeni/lib/GeniCluster.pm.in
View file @
c5259a31
...
...
@@ -1678,9 +1678,9 @@ sub ReservationHistory($)
return
GeniResponse
->
MalformedArgsResponse
(
"Invalid user URN"
)
if
(
!GeniHRN::IsValid($argref->{'user_urn'}));
#
User
should
already
exist
;
the
caller
used
CreateUser
()
above
first
.
#
User
may
not
exist
,
which
is
okay
.
my
$
geniuser
=
GeniUser
->
Lookup
($
argref
->{
'user_urn'
},
1
);
return
GeniResponse
->
MalformedArgsResponse
(
"No such user"
)
goto
nohistory
if
(
!defined($geniuser));
#
...
...
@@ -1728,6 +1728,7 @@ sub ReservationHistory($)
$
blob
->{
"history"
}
=
\@
timeline
;
push
(@
history
,
$
blob
);
}
nohistory
:
my
$
blob
=
{
"history"
=>
\@
history
,
};
...
...
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