Created
July 27, 2017 15:35
-
-
Save dav1x/714cfba94d5f9c0159b4dedc845ecbc2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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