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
fabb6c8e
Commit
fabb6c8e
authored
Jun 29, 2012
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy should be done from person.
It allows to propagate the state to the instance.
parent
633c2d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubcription_requestDestructionSeleniumTester.xml
...p/HostingSubcription_requestDestructionSeleniumTester.xml
+13
-10
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubcription_requestDestructionSeleniumTester.xml
View file @
fabb6c8e
...
@@ -60,16 +60,19 @@ now = DateTime()\n
...
@@ -60,16 +60,19 @@ now = DateTime()\n
\n
\n
if hosting_subscription.getDestinationSectionValue().getReference() == \'seleniumtester\' and \\\n
if hosting_subscription.getDestinationSectionValue().getReference() == \'seleniumtester\' and \\\n
hosting_subscription.getModificationDate() < (now - 1):\n
hosting_subscription.getModificationDate() < (now - 1):\n
if hosting_subscription.getSlapState() != "destroy_requested":\n
\n
hosting_subscription.requestDestroy(\n
person = hosting_subscription.getDestinationSectionValue(portal_type="Person")\n
software_release=hosting_subscription.getRootSoftwareReleaseUrl(),\n
person.requestSoftwareInstance(\n
instance_xml=hosting_subscription.getTextContent(),\n
software_release=hosting_subscription.getRootSoftwareReleaseUrl(),\n
software_type=hosting_subscription.getSourceReference(),\n
instance_xml=hosting_subscription.getTextContent(),\n
sla_xml=hosting_subscription.getSlaXml(),\n
software_type=hosting_subscription.getSourceReference(),\n
shared=hosting_subscription.getRootSlave(),\n
sla_xml=hosting_subscription.getSlaXml(),\n
comment=\'Requested by clenaup alarm\', \n
shared=hosting_subscription.getRootSlave(),\n
activate_kw={\'tag\': tag}\n
state="destroyed",\n
)\n
software_title=hosting_subscription.getTitle(),\n
comment=\'Requested by clenaup alarm\', \n
activate_kw={\'tag\': tag}\n
)\n
]]>
</string>
</value>
]]>
</string>
</value>
...
...
master/bt5/vifib_slap/bt/revision
View file @
fabb6c8e
770
771
\ No newline at end of file
\ No newline at end of file
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