Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
5db300f0
Commit
5db300f0
authored
Jun 01, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify empty file creation.
parent
2aedeb4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
slapos/recipe/agent/__init__.py
slapos/recipe/agent/__init__.py
+3
-5
No files found.
slapos/recipe/agent/__init__.py
View file @
5db300f0
...
...
@@ -73,11 +73,9 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe):
configuration
.
set
(
"agent"
,
"software_list"
,
parameter_dict
[
"software_list"
])
configuration
.
set
(
"agent"
,
"log_directory"
,
self
.
options
[
"log_directory"
])
configuration
.
set
(
"agent"
,
"state_file"
,
self
.
options
[
"state_file"
])
if
not
os
.
path
.
exists
(
self
.
options
[
"state_file"
]):
state
=
open
(
self
.
options
[
"state_file"
],
"w"
)
state
.
write
(
''
)
state
.
close
()
state_file
=
self
.
options
[
"state_file"
]
configuration
.
set
(
"agent"
,
"state_file"
,
state_file
)
open
(
state_file
,
"a"
).
close
()
configuration
.
set
(
"agent"
,
"path_file"
,
self
.
options
[
"path_file"
])
configuration
.
add_section
(
"software_uri"
)
software_list
=
json
.
loads
(
parameter_dict
[
"software_list"
])
...
...
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