Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
6e0fd3ba
Commit
6e0fd3ba
authored
Feb 19, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription: Set default values.
parent
338682fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_processRequest.py
...ubscription_request/SubscriptionRequest_processRequest.py
+12
-5
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_processRequest.py
View file @
6e0fd3ba
...
@@ -2,7 +2,6 @@ if context.getAggregate() is not None:
...
@@ -2,7 +2,6 @@ if context.getAggregate() is not None:
return
return
person
=
context
.
getDestinationSectionValue
()
person
=
context
.
getDestinationSectionValue
()
if
person
is
None
:
if
person
is
None
:
return
return
...
@@ -10,14 +9,22 @@ if context.getSimulationState() == "confirmed":
...
@@ -10,14 +9,22 @@ if context.getSimulationState() == "confirmed":
return
return
request_kw
=
{}
request_kw
=
{}
default_xml
=
"""<?xml version="1.0" encoding="utf-8"?>
<instance>
</instance>
"""
if
context
.
getUrlString
()
is
None
:
raise
ValueError
(
"url_string cannot be None"
)
request_kw
.
update
(
request_kw
.
update
(
software_release
=
context
.
getUrlString
(),
software_release
=
context
.
getUrlString
(),
# Bad title
# Bad title
software_title
=
context
.
getTitle
()
+
" %s"
%
str
(
context
.
getUid
()),
software_title
=
context
.
getTitle
()
+
" %s"
%
str
(
context
.
getUid
()),
software_type
=
context
.
getSourceReference
(),
software_type
=
context
.
getSourceReference
(
"default"
),
instance_xml
=
context
.
getTextContent
().
strip
(),
instance_xml
=
context
.
getTextContent
(
default_xml
).
strip
(),
sla_xml
=
context
.
getSlaXml
().
strip
(),
sla_xml
=
context
.
getSlaXml
(
default_xml
).
strip
(),
shared
=
context
.
getRootSlave
(
),
shared
=
bool
(
context
.
getRootSlave
(
0
)
),
state
=
"started"
,
state
=
"started"
,
)
)
...
...
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