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
Titouan Soulard
slapos.core
Commits
e0f8b833
Commit
e0f8b833
authored
Oct 04, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow user to get connection parameters
parent
2094f4e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
slapos/client.py
slapos/client.py
+8
-6
No files found.
slapos/client.py
View file @
e0f8b833
...
@@ -28,12 +28,13 @@
...
@@ -28,12 +28,13 @@
##############################################################################
##############################################################################
import
argparse
import
argparse
import
slapos.slap.slap
import
ConfigParser
import
pprint
from
optparse
import
OptionParser
,
Option
import
os
from
slapos.slap
import
ResourceNotReady
from
slapos.slap
import
ResourceNotReady
import
slapos.slap.slap
import
sys
import
sys
import
os
from
optparse
import
OptionParser
,
Option
import
ConfigParser
class
Parser
(
OptionParser
):
class
Parser
(
OptionParser
):
"""
"""
...
@@ -207,10 +208,11 @@ slapos-request allows you to request slapos instances.""" % sys.argv[0]
...
@@ -207,10 +208,11 @@ slapos-request allows you to request slapos instances.""" % sys.argv[0]
print
(
"Instance requested.
\
n
State is : %s.
\
n
You can "
print
(
"Instance requested.
\
n
State is : %s.
\
n
You can "
"rerun to get up-to-date informations."
%
(
"rerun to get up-to-date informations."
%
(
partition
.
getState
()))
partition
.
getState
()))
# XXX-Cedric : provide a way for user to fetch parameter, url, object, etc
print
(
"Connection parameters of instance are:
\
n
%s"
%
pprint
.
pprint
(
partition
.
getConnectionParameterDict
()))
except
ResourceNotReady
:
except
ResourceNotReady
:
print
(
"Instance requested. Master is provisionning it. Please rerun in a "
print
(
"Instance requested. Master is provisionning it. Please rerun in a "
"couple of minutes to get connection informations"
)
"couple of minutes to get connection informations"
)
exit
(
2
)
exit
(
2
)
def
run
():
def
run
():
...
...
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