+ raise configerror.ConfigError("Unexpected issue has occured!")
+
+ def set_post_config(self):
+ self.config[self.ROOT]['swift_credential'] = \
+ dict(
+ user=self.get_caas_parameter('swift_credential').get('user'),
+ tenant=self.get_caas_parameter('swift_credential').get('tenant'),
+ password=self.generate_pwd(ADMIN_PWD_LENGTH)
+ )
+
+ @staticmethod
+ def _template_config(template, base_config, initial_data):
+ config_data = initial_data.copy()
+ config_data.update(base_config)
+ output_text = template.render(config_data)
+ previous_output_text = ""
+ while output_text != previous_output_text:
+ config_data = yaml.load(output_text)
+ config_data.update(base_config)
+ output_text = template.render(config_data)
+ previous_output_text = output_text
+ return yaml.load(output_text)