Commit 57ce6e25 by Fukász Rómeó Ervin

storage: fix flake8 error in storage model

parent 86f33c71
Pipeline #629 passed with stage
in 0 seconds
...@@ -122,7 +122,7 @@ class DataStore(Model): ...@@ -122,7 +122,7 @@ class DataStore(Model):
try: try:
stats = self.get_statistics() stats = self.get_statistics()
except WorkerNotFound: except WorkerNotFound:
return -1 # invalid value for unreachable return -1 # invalid value for unreachable
free_percent = float(stats['free_percent']) free_percent = float(stats['free_percent'])
return int(100 - free_percent) return int(100 - free_percent)
......
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 sign in to comment