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
5f722223
Commit
5f722223
authored
Jul 03, 2012
by
Yingjie Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify file writing.
parent
3313b309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+1
-3
No files found.
slapos/grid/SlapObject.py
View file @
5f722223
...
@@ -405,9 +405,7 @@ class Partition(object):
...
@@ -405,9 +405,7 @@ class Partition(object):
parameter_dict
=
self
.
computer_partition
.
getInstanceParameterDict
()
parameter_dict
=
self
.
computer_partition
.
getInstanceParameterDict
()
if
'timestamp'
in
parameter_dict
:
if
'timestamp'
in
parameter_dict
:
timestamp_path
=
os
.
path
.
join
(
self
.
instance_path
,
'.timestamp'
)
timestamp_path
=
os
.
path
.
join
(
self
.
instance_path
,
'.timestamp'
)
descriptor
=
open
(
timestamp_path
,
'w'
)
open
(
timestamp_path
,
'w'
).
write
(
parameter_dict
[
'timestamp'
])
descriptor
.
write
(
parameter_dict
[
'timestamp'
])
descriptor
.
close
()
def
start
(
self
):
def
start
(
self
):
"""Asks supervisord to start the instance. If this instance is not
"""Asks supervisord to start the instance. If this instance is not
...
...
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