Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
04361374
Commit
04361374
authored
Oct 23, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Watch for null slice URN, it can happen.
parent
35957a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
apt/create_instance.in
apt/create_instance.in
+3
-0
No files found.
apt/create_instance.in
View file @
04361374
...
...
@@ -711,6 +711,9 @@ my $slice_id = (defined($userslice_id) ? $userslice_id :
my
$slice_auth
=
(
$pid
eq
$gid
?
$pid
:
"
${pid}
:
${gid}
");
my
$slice_urn
=
GeniHRN::
Generate
("
${OURDOMAIN}
:
${slice_auth}
",
"
slice
",
$slice_id
);
if
(
!
defined
(
$slice_urn
))
{
fatal
("
Could not generate a valid slice urn!
");
}
my
$slice_hrn
=
"
${PGENIDOMAIN}
.
${pid}
.
${slice_id}
";
my
$SERVER_NAME
=
(
exists
(
$ENV
{"
SERVER_NAME
"})
?
$ENV
{"
SERVER_NAME
"}
:
"");
...
...
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