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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
504ba6e6
Commit
504ba6e6
authored
May 28, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8
parent
921d9325
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
+9
-14
slapos/cli/config.py
slapos/cli/config.py
+1
-1
slapos/cli/proxy_show.py
slapos/cli/proxy_show.py
+8
-12
slapos/cli/proxy_start.py
slapos/cli/proxy_start.py
+0
-1
No files found.
slapos/cli/config.py
View file @
504ba6e6
...
@@ -25,7 +25,7 @@ class ConfigCommand(Command):
...
@@ -25,7 +25,7 @@ class ConfigCommand(Command):
ap
.
add_argument
(
'--cfg'
,
ap
.
add_argument
(
'--cfg'
,
help
=
'SlapOS configuration file'
help
=
'SlapOS configuration file'
' (default: $%s or %s)'
%
' (default: $%s or %s)'
%
(
self
.
default_config_var
,
self
.
default_config_path
))
(
self
.
default_config_var
,
self
.
default_config_path
))
return
ap
return
ap
def
fetch_config
(
self
,
args
):
def
fetch_config
(
self
,
args
):
...
...
slapos/cli/proxy_show.py
View file @
504ba6e6
...
@@ -171,16 +171,14 @@ def do_show(conf):
...
@@ -171,16 +171,14 @@ def do_show(conf):
conn
.
create_function
(
'md5'
,
1
,
lambda
s
:
hashlib
.
md5
(
s
).
hexdigest
())
conn
.
create_function
(
'md5'
,
1
,
lambda
s
:
hashlib
.
md5
(
s
).
hexdigest
())
print_all
=
not
any
(
print_all
=
not
any
([
[
conf
.
computers
,
conf
.
computers
,
conf
.
software
,
conf
.
software
,
conf
.
partitions
,
conf
.
partitions
,
conf
.
slaves
,
conf
.
slaves
,
conf
.
params
,
conf
.
params
,
conf
.
network
,
conf
.
network
,
])
]
)
if
print_all
or
conf
.
computers
:
if
print_all
or
conf
.
computers
:
print_computer_table
(
conn
)
print_computer_table
(
conn
)
...
@@ -200,5 +198,3 @@ def do_show(conf):
...
@@ -200,5 +198,3 @@ def do_show(conf):
if
print_all
or
conf
.
network
:
if
print_all
or
conf
.
network
:
print_network
(
conn
)
print_network
(
conn
)
print
print
slapos/cli/proxy_start.py
View file @
504ba6e6
...
@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand):
...
@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand):
conf
.
setConfig
()
conf
.
setConfig
()
do_proxy
(
conf
=
conf
)
do_proxy
(
conf
=
conf
)
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