Commit 798097e5 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

I think I have this fixed now; after creating the local emulab user

we have to look in that DB, not the geni-cm database.
parent 40ee38bc
......@@ -617,15 +617,15 @@ sub CreateLocalUser($$)
"Could not create local user")
}
FlipToGeniUser();
User->FlushAll();
GeniUser->FlushAll();
my $user = GeniUser->Lookup($urn, 1);
# Direct user lookup since GeniUser->Lookup is going to look in
# geni-cm database, and the new user is not there.
my $user = User->LookupNonLocal($urn);
if (!defined($user)) {
Carp::cluck("Could not lookup '$urn' after creategeniuser");
Carp::cluck("Could not lookup localuser '$urn' after creategeniuser");
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Could not lookup local user after create")
}
return $user;
return GeniUser->CreateFromLocal($user);
}
sub escapeshellarg($)
......
Supports Markdown
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