Skip to content

Commit

Permalink
copr: actually invoke rstrip
Browse files Browse the repository at this point in the history
Previously it could throw:
```
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
```
Closes: #421
Approved by: xsuchy
  • Loading branch information
HKGx authored and rh-atomic-bot committed Jan 11, 2021
1 parent b8390f8 commit a7a6fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def linux_distribution():
with open('/etc/os-release') as os_release_file:
os_release_data = {}
for line in os_release_file:
os_release_key, os_release_value = line.rstrip.split('=')
os_release_key, os_release_value = line.rstrip().split('=')
os_release_data[os_release_key] = os_release_value.strip('"')
return (os_release_data['NAME'], os_release_data['VERSION_ID'], None)

Expand Down

0 comments on commit a7a6fb2

Please sign in to comment.