Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
44101d8a
Commit
44101d8a
authored
Jun 12, 2013
by
Stavros Sachtouris
Browse files
Updagrade error message for multiple clouds
Refs: #3979
parent
c825ddc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/__init__.py
View file @
44101d8a
...
...
@@ -255,10 +255,13 @@ def _init_session(arguments, is_non_API=False):
cloud
=
_cnf
.
value
.
keys
(
'cloud'
)[
0
]
else
:
raise
CLIError
(
'Found %s clouds but none of them is set as default'
,
'Found %s clouds but none of them is set as default'
%
(
num_of_clouds
),
importance
=
2
,
details
=
[
'Please, choose one of the following cloud names:'
,
', '
.
join
(
_cnf
.
value
.
keys
(
'cloud'
)),
'To see all cloud settings:'
,
' kamaki config get cloud.<cloud name>'
,
'To set a default cloud:'
,
' kamaki config set default_cloud <cloud name>'
,
'To pick a cloud for the current session, use --cloud:'
,
...
...
@@ -282,7 +285,8 @@ def _init_session(arguments, is_non_API=False):
'No authentication %s provided for cloud "%s"'
%
(
term
,
cloud
),
importance
=
3
,
details
=
[
'Set a %s for cloud %s:'
%
(
term
,
cloud
),
' kamaki config set cloud.%s.%s <t0k3n>'
%
(
cloud
,
term
)])
' kamaki config set cloud.%s.%s <%s>'
%
(
cloud
,
term
,
term
)])
from
kamaki.clients.astakos
import
AstakosClient
as
AuthCachedClient
try
:
...
...
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