mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 17:46:17 +01:00
Merge pull request #562 from lethliel/fix_status_outupt_of_attribute_deletion
[python3] fix outupt of status on attribute deletion
This commit is contained in:
commit
c4979dcde2
@ -1102,7 +1102,7 @@ class Osc(cmdln.Cmdln):
|
||||
attributepath.append(opts.attribute)
|
||||
u = makeurl(apiurl, attributepath)
|
||||
for data in streamfile(u, http_DELETE):
|
||||
sys.stdout.write(data)
|
||||
sys.stdout.write(decode_it(data))
|
||||
else:
|
||||
raise oscerr.WrongOptions('The --delete switch is only for pattern metadata or attributes.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user