Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
84460902
Commit
84460902
authored
May 16, 2018
by
Flavio TARSETTI
Browse files
[common] remove TYPE_PLURAL[type] from local/remote display - removes the typename
parent
f64a61bb
Pipeline
#20235
passed with stages
in 27 minutes and 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/common.py
View file @
84460902
...
...
@@ -351,7 +351,7 @@ def display_remote_list(webapi, type):
if
l
is
None
:
return
1
for
o
in
l
:
logger
.
info
(
'%s
/%s'
,
TYPE_PLURAL
[
type
]
,
o
[
'name'
])
logger
.
info
(
'%s
'
,
o
[
'name'
])
if
o
[
'short_description'
]:
logger
.
extra
(
2
*
' '
+
o
[
'short_description'
])
if
len
(
l
)
!=
1
:
...
...
@@ -447,7 +447,7 @@ def display_local_list(prefix, type):
names
=
make_up_local_list
(
prefix
,
type
,
[])
for
name
in
names
:
logger
.
info
(
"%s
/%s"
,
TYPE_PLURAL
[
type
]
,
name
)
logger
.
info
(
"%s
"
,
name
)
try
:
storage
=
TYPE_STORAGE
[
type
](
prefix
,
name
)
contents
=
simplejson
.
loads
(
storage
.
json
.
load
(),
object_pairs_hook
=
collections
.
OrderedDict
)
...
...
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