Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
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
Show 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):
...
@@ -73,11 +73,9 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe):
configuration
.
set
(
"agent"
,
"software_list"
,
configuration
.
set
(
"agent"
,
"software_list"
,
parameter_dict
[
"software_list"
])
parameter_dict
[
"software_list"
])
configuration
.
set
(
"agent"
,
"log_directory"
,
self
.
options
[
"log_directory"
])
configuration
.
set
(
"agent"
,
"log_directory"
,
self
.
options
[
"log_directory"
])
configuration
.
set
(
"agent"
,
"state_file"
,
self
.
options
[
"state_file"
])
state_file
=
self
.
options
[
"state_file"
]
if
not
os
.
path
.
exists
(
self
.
options
[
"state_file"
]):
configuration
.
set
(
"agent"
,
"state_file"
,
state_file
)
state
=
open
(
self
.
options
[
"state_file"
],
"w"
)
open
(
state_file
,
"a"
).
close
()
state
.
write
(
''
)
state
.
close
()
configuration
.
set
(
"agent"
,
"path_file"
,
self
.
options
[
"path_file"
])
configuration
.
set
(
"agent"
,
"path_file"
,
self
.
options
[
"path_file"
])
configuration
.
add_section
(
"software_uri"
)
configuration
.
add_section
(
"software_uri"
)
software_list
=
json
.
loads
(
parameter_dict
[
"software_list"
])
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