1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02: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:
Marco Strigl 2019-05-22 13:08:43 +02:00 committed by GitHub
commit c4979dcde2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.')