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
7eef339f
Commit
7eef339f
authored
Sep 09, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapgrid: Don't check root if we don't want to.
parent
84db69f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+6
-1
No files found.
slapos/cli/slapgrid.py
View file @
7eef339f
...
@@ -7,6 +7,7 @@ from slapos.grid.utils import setRunning, setFinished
...
@@ -7,6 +7,7 @@ from slapos.grid.utils import setRunning, setFinished
from
slapos.grid.slapgrid
import
(
merged_options
,
check_missing_parameters
,
check_missing_files
,
from
slapos.grid.slapgrid
import
(
merged_options
,
check_missing_parameters
,
check_missing_files
,
random_delay
,
create_slapgrid_object
)
random_delay
,
create_slapgrid_object
)
from
slapos.util
import
string_to_boolean
class
SlapgridCommand
(
ConfigCommand
):
class
SlapgridCommand
(
ConfigCommand
):
command_group
=
'node'
command_group
=
'node'
...
@@ -62,11 +63,15 @@ class SlapgridCommand(ConfigCommand):
...
@@ -62,11 +63,15 @@ class SlapgridCommand(ConfigCommand):
help
=
'Deprecated. Will only work from configuration file in the future.'
)
help
=
'Deprecated. Will only work from configuration file in the future.'
)
return
ap
return
ap
@
must_be_root
def
take_action
(
self
,
args
):
def
take_action
(
self
,
args
):
configp
=
self
.
fetch_config
(
args
)
configp
=
self
.
fetch_config
(
args
)
options
=
merged_options
(
args
,
configp
)
options
=
merged_options
(
args
,
configp
)
# Parse if we have to check if running from root
# XXX document this feature.
if
string_to_boolean
(
options
.
get
(
'root_check'
,
'True'
).
lower
()):
must_be_root
(
lambda
:
None
)
check_missing_parameters
(
options
)
check_missing_parameters
(
options
)
check_missing_files
(
options
)
check_missing_files
(
options
)
...
...
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