Skip to content
Snippets Groups Projects
Verified Commit 5a9e2978 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

clarify data_loaded comments

parent d13503f5
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class Cluster: ...@@ -40,7 +40,7 @@ class Cluster:
self.domain = None self.domain = None
# By default, use Let's Encrypt's staging environment # By default, use Let's Encrypt's staging environment
self.acme_staging = True self.acme_staging = True
# Set this to true if the data needs to be loaded from file # Set this to False if the data needs to be (re)loaded from file
self.data_loaded = False self.data_loaded = False
# Load data from inventory.yml and settings.yml # Load data from inventory.yml and settings.yml
if load_data: if load_data:
...@@ -50,7 +50,7 @@ class Cluster: ...@@ -50,7 +50,7 @@ class Cluster:
""" """
Loads cluster data from inventory.yml and settings.yml files Loads cluster data from inventory.yml and settings.yml files
Set self.data_loaded to false if this function should not re-read data Set self.data_loaded to False if this function should re-read data
from file. from file.
""" """
if not self.data_loaded: if not self.data_loaded:
...@@ -70,8 +70,8 @@ class Cluster: ...@@ -70,8 +70,8 @@ class Cluster:
log.debug('Read data from inventory.yml:\n\thostname: %s', self.hostname) log.debug('Read data from inventory.yml:\n\thostname: %s', self.hostname)
else: else:
log.debug('Not loading cluster data from file. Set reload_data to ' log.debug('Not loading cluster data from file. Set '
'True if you want a reload.') 'Cluster.data_loaded to False if you want a reload.')
self.data_loaded = True self.data_loaded = True
def create_droplet(self, ssh_key_id=0, hostname=None): def create_droplet(self, ssh_key_id=0, hostname=None):
......
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