Commit 5438dab3 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'remove_type_name_for_local_remote_list' into '1.4.x'

Remove printing type name of object for all packages using list or list --remove

See merge request !27
parents f64a61bb 84460902
Pipeline #20236 passed with stages
in 37 minutes and 20 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment