Fix DataStore queries with get_default_datastore()
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
circle/storage/models.py
110 111 disks = Disk.objects.filter(destroyed__isnull=True, is_ready=True) 111 112 return disks.exclude(filename__in=files) 112 113 114 @classmethod 115 def get_default_datastore(cls): 116 datastore_name = settings.DEFAULT_DATASTORE 117 if datastore_name: -
Owner
dataestore_name is present because of the default value, no need for the if
-