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
da29630e
Commit
da29630e
authored
Mar 14, 2019
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More small image fixes.
parent
018f754c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
apt/APT_Instance.pm.in
apt/APT_Instance.pm.in
+6
-1
No files found.
apt/APT_Instance.pm.in
View file @
da29630e
...
...
@@ -1628,6 +1628,9 @@ sub CreateImageCreds($$$;$)
my
$
image_urn
=
GeniXML
::
GetText
(
"name"
,
$
diskref
);
next
if
(
!defined($image_urn));
#
Yep
,
people
put
the
URL
in
the
URN
spot
.
We
should
throw
an
error
.
next
if
($
image_urn
=~
/^(
http
|
https
):/);
$
image_urn
=
GeniHRN
->
new
($
image_urn
);
if
(
! (defined($image_urn) && $image_urn->IsImage())) {
...
...
@@ -1766,7 +1769,9 @@ sub CreateImageCreds($$$;$)
#
basically
have
to
say
that
the
experiment
and
the
image
have
#
to
be
in
the
same
local
project
.
#
if
($
project_urn
->
project
()
ne
$
project
->
pid
())
{
#
XXX
Need
to
come
back
to
this
...
#
if
(
lc
($
project_urn
->
project
())
ne
lc
($
project
->
pid
()))
{
$$
pmsg
=
"No permission to use $image_urn in project "
.
$
project
->
pid
();
return
1
;
...
...
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