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
132e4c8d
Commit
132e4c8d
authored
Feb 17, 2017
by
Leigh B Stoller
Browse files
Trying to fix the problem with not being able to lookup a new
user right after create.
parent
4a8b2582
Changes
2
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniUser.pm.in
View file @
132e4c8d
#
!/usr/bin/perl -wT
#
#
Copyright
(
c
)
2008
-
201
6
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2008
-
201
7
University
of
Utah
and
the
Flux
Group
.
#
#
{{{
GENIPUBLIC
-
LICENSE
#
...
...
@@ -301,6 +301,12 @@ sub Flush($)
delete
($
users
{$
self
->
idx
()});
}
sub
FlushAll
($)
{
my
($
class
)
=
@
_
;
%
users
=
();
}
#
Return
the
URN
.
#
...
...
protogeni/lib/GeniUtil.pm.in
View file @
132e4c8d
...
...
@@ -37,6 +37,7 @@ use vars qw(@ISA @EXPORT);
@
EXPORT
=
qw
(
GENI_PURGEFLAG
FindHostname
FindVHostname
);
use
English
;
use
Carp
;
use
Data
::
Dumper
;
use
XML
::
Simple
;
use
File
::
Temp
qw
(
tempfile
);
...
...
@@ -616,8 +617,11 @@ sub CreateLocalUser($$)
"Could not create local user")
}
FlipToGeniUser();
User->FlushAll();
GeniUser->FlushAll();
my $user = GeniUser->Lookup($urn, 1);
if (!defined($user)) {
Carp::cluck("Could not lookup '
$
urn
' after creategeniuser");
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Could not lookup local user after create")
}
...
...
Write
Preview
Supports
Markdown
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