def save_managed_config(directory, base_config, cluster):
 managed_config_file = directory.child('managed.yaml')
 managed_config = create_managed_config(base_config, cluster)
 managed_config_file.setContent(yaml.safe_dump(managed_config, default_flow_style=False))

def save_managed_config ( directory , base_config , cluster ) : managed_config_file = directory . child ( 'managed.yaml' ) managed_config = create_managed_config ( base_config , cluster ) managed_config_file . setContent ( yaml . safe_dump ( managed_config , default_flow_style = False ) )
create and save a configuration file for the given cluster .