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
21
Merge Requests
21
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
0f244b2f
Commit
0f244b2f
authored
Apr 29, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed comments
parent
f15e0158
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
slapos/cli/register.py
slapos/cli/register.py
+1
-7
slapos/cli_legacy/register.py
slapos/cli_legacy/register.py
+0
-2
No files found.
slapos/cli/register.py
View file @
0f244b2f
...
@@ -64,17 +64,11 @@ class RegisterCommand(Command):
...
@@ -64,17 +64,11 @@ class RegisterCommand(Command):
return
ap
return
ap
def
take_action
(
self
,
args
):
def
take_action
(
self
,
args
):
#if args.password and not args.login:
# # XXX we don't have the parser now, maybe could be handled with an argument group?
# ap.error('Please enter your login with your password')
try
:
try
:
conf
=
RegisterConfig
(
logger
=
self
.
log
)
conf
=
RegisterConfig
(
logger
=
self
.
log
)
conf
.
setConfig
(
args
)
conf
.
setConfig
(
args
)
return_code
=
do_register
(
conf
)
return_code
=
do_register
(
conf
)
except
SystemExit
,
err
:
except
SystemExit
as
err
:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
return_code
=
err
return_code
=
err
sys
.
exit
(
return_code
)
sys
.
exit
(
return_code
)
slapos/cli_legacy/register.py
View file @
0f244b2f
...
@@ -101,8 +101,6 @@ def main():
...
@@ -101,8 +101,6 @@ def main():
conf
.
setConfig
(
args
)
conf
.
setConfig
(
args
)
return_code
=
do_register
(
conf
)
return_code
=
do_register
(
conf
)
except
SystemExit
as
exc
:
except
SystemExit
as
exc
:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
return_code
=
exc
return_code
=
exc
sys
.
exit
(
return_code
)
sys
.
exit
(
return_code
)
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