def upload_config(config): """ This function allows you to upload your configuration for puppet. At the moment this should be a dict with an attribute named regions: regions: [ 'eu-west-3', 'sa-east-1', ] :param config: The dict containing the configuration used for puppet """ core.upload_config(config)
def upload_config(p): content = open(p, 'r').read() config = yaml.safe_load(content) core.upload_config(config)