Skip to content
Snippets Groups Projects
Commit ccc1f69f authored by Iustin Pop's avatar Iustin Pop Committed by Apollon Oikonomopoulos
Browse files

Fix shared_file_storage_dir on upgrades


If the cluster was upgraded from 2.4 or earlier, this key won't exist
(it's only set to a correct value on cluster init), so we need to
properly set it to a null string (disabled).

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent c7741319
No related branches found
No related merge requests found
...@@ -1169,6 +1169,10 @@ class Cluster(TaggableObject): ...@@ -1169,6 +1169,10 @@ class Cluster(TaggableObject):
if self.prealloc_wipe_disks is None: if self.prealloc_wipe_disks is None:
self.prealloc_wipe_disks = False self.prealloc_wipe_disks = False
# shared_file_storage_dir added before 2.5
if self.shared_file_storage_dir is None:
self.shared_file_storage_dir = ""
def ToDict(self): def ToDict(self):
"""Custom function for cluster. """Custom function for cluster.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment