Commit 092fffcf by Czémán Arnold

storage: remove unecessary 'if' from get_default_datastore method

parent d82f4c8f
Pipeline #209 passed with stage
in 0 seconds
......@@ -113,9 +113,7 @@ class DataStore(Model):
def get_default_datastore(cls):
datastore_name = settings.DEFAULT_DATASTORE
if datastore_name:
return cls.objects.get(name=datastore_name)
return cls.objects.get(name=settings.DEFAULT_DATASTORE)
class Disk(TimeStampedModel):
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