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
b4cf92b8
Commit
b4cf92b8
authored
Jan 25, 2013
by
Stavros Sachtouris
Browse files
Fully adjust pithos_cli
parent
68858765
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/errors.py
View file @
b4cf92b8
...
...
@@ -460,7 +460,8 @@ class pithos(object):
return
foo
(
self
,
*
args
,
**
kwargs
)
except
ClientError
as
ce
:
err_msg
=
(
'%s'
%
ce
).
lower
()
if
ce
.
status
==
404
and
'object does not'
in
err_msg
:
if
(
ce
.
status
==
404
or
ce
.
status
==
500
)
\
and
'object'
in
err_msg
and
'not'
in
err_msg
:
raiseCLIError
(
ce
,
'No object %s in %s
\'
s container %s'
\
%
(
self
.
path
,
self
.
account
,
self
.
container
),
...
...
kamaki/cli/commands/pithos_cli.py
View file @
b4cf92b8
This diff is collapsed.
Click to expand it.
kamaki/cli/utils.py
View file @
b4cf92b8
...
...
@@ -245,8 +245,6 @@ def print_items(items,
else
:
header
=
' '
.
join
(
unicode
(
item
.
pop
(
key
))
for
key
in
title
)
print
(
bold
(
header
))
else
:
print
(
'- - -'
)
if
isinstance
(
item
,
dict
):
print_dict
(
item
,
ident
=
1
)
elif
isinstance
(
item
,
list
):
...
...
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