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
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):
ap
.
add_argument
(
'--cfg'
,
help
=
'SlapOS configuration file'
' (default: $%s or %s)'
%
(
self
.
default_config_var
,
self
.
default_config_path
))
(
self
.
default_config_var
,
self
.
default_config_path
))
return
ap
def
fetch_config
(
self
,
args
):
...
...
slapos/cli/proxy_show.py
View file @
504ba6e6
...
...
@@ -171,16 +171,14 @@ def do_show(conf):
conn
.
create_function
(
'md5'
,
1
,
lambda
s
:
hashlib
.
md5
(
s
).
hexdigest
())
print_all
=
not
any
(
[
conf
.
computers
,
conf
.
software
,
conf
.
partitions
,
conf
.
slaves
,
conf
.
params
,
conf
.
network
,
]
)
print_all
=
not
any
([
conf
.
computers
,
conf
.
software
,
conf
.
partitions
,
conf
.
slaves
,
conf
.
params
,
conf
.
network
,
])
if
print_all
or
conf
.
computers
:
print_computer_table
(
conn
)
...
...
@@ -200,5 +198,3 @@ def do_show(conf):
if
print_all
or
conf
.
network
:
print_network
(
conn
)
print
slapos/cli/proxy_start.py
View file @
504ba6e6
...
...
@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand):
conf
.
setConfig
()
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