ctubbsii commented on a change in pull request #274: Updates to enable launch
of EC2 instances via user-defined templates
URL: https://github.com/apache/fluo-muchos/pull/274#discussion_r317778147
##########
File path: lib/muchos/config.py
##########
@@ -332,6 +338,77 @@ def print_property(self, key):
return
exit("Property '{0}' was not found".format(key))
+ def init_template(self, templates_path):
+ if not self.has_option('ec2', 'cluster_template'):
+ return
+
+ template_id = self.get('ec2', 'cluster_template')
+ for root, dirs, files in os.walk(templates_path):
Review comment:
Could just `os.path.join(templates_path, template_id)` instead of double
nested loop.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services