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
45ce79a6
Commit
45ce79a6
authored
Sep 19, 2013
by
Jonathon Duerig
Browse files
Fix bitrot. Add a type field in the generated credential.
parent
20f3039c
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/genextend_lifetime.in
View file @
45ce79a6
...
...
@@ -109,6 +109,7 @@ sub Create($$$) {
$self
->
{'
extensions
'}
=
undef
;
$self
->
{'
uuid
'}
=
GeniUtil::
NewUUID
();
$self
->
{'
idx
'}
=
undef
;
# Only set when stored to DB.
$self
->
{'
type
'}
=
"
privilege
";
bless
(
$self
,
"
GeniCredential
");
$self
->
SetExpiration
(
time
()
+
(
$expires
*
60
*
60
*
24
));
...
...
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