Skip to content
GitLab
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
0640cfc0
Commit
0640cfc0
authored
Aug 07, 2017
by
Leigh B Stoller
Browse files
The rspec is now optional, we allow new profiles with no topo, as for
the new create image workflow.
parent
d74b6afa
Changes
1
Hide whitespace changes
Inline
Side-by-side
apt/APT_Profile.pm.in
View file @
0640cfc0
...
...
@@ -435,7 +435,8 @@ sub Create($$$$$$)
}
my
$
profileid
=
TBGetUniqueIndex
(
"next_profile"
,
undef
,
1
);
my
$
rspec
=
DBQuoteSpecial
($
argref
->{
'rspec'
});
my
$
rspec
=
DBQuoteSpecial
($
argref
->{
'rspec'
})
if
(
exists
($
argref
->{
'rspec'
}));
my
$
cquery
=
""
;
my
$
vquery
=
""
;
...
...
@@ -450,7 +451,7 @@ sub Create($$$$$$)
$
vquery
=
$
cquery
;
$
vquery
.=
",uuid='$vuuid',created=now()"
;
$
vquery
.=
",creator='$uid',creator_idx='$uid_idx'"
;
$
vquery
.=
",rspec=$rspec"
;
$
vquery
.=
",rspec=$rspec"
if
(
defined
($
rspec
))
;
#
Set
derived
from
pointer
.
if
(
defined
($
parent
))
{
...
...
@@ -1634,6 +1635,9 @@ sub InsertImageRecords($$)
my
($
self
,
$
perrmsg
)
=
@
_
;
my
$
profileid
=
$
self
->
profileid
();
my
$
version
=
$
self
->
version
();
return
0
if
($
self
->
rspec
()
eq
""
);
my
$
rspec
=
GeniXML
::
Parse
($
self
->
rspec
());
if
(
! defined($rspec)) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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