Skip to content

Instantly share code, notes, and snippets.

@dav1x
Created July 27, 2017 15:35
Show Gist options
  • Save dav1x/714cfba94d5f9c0159b4dedc845ecbc2 to your computer and use it in GitHub Desktop.
Save dav1x/714cfba94d5f9c0159b4dedc845ecbc2 to your computer and use it in GitHub Desktop.
if 'storage' in self.node_type:
if 'clean' in self.tag:
self.storage_nodes = int(self.storage_nodes) - int(self.node_number)
else:
self.storage_nodes = int(self.storage_nodes) + int(self.node_number)
config.set('vmware', 'storage_nodes', str(self.storage_nodes))
print "Updating %s file with %s storage_nodes" % (vmware_ini_path, str(self.storage_nodes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment