From b810bc0a8316c28baf654c13e5f43e6ff3a8c64e Mon Sep 17 00:00:00 2001 From: Ethan Gafford Date: Tue, 19 Jan 2016 10:45:09 -0500 Subject: [PATCH] Fixing kwarg name for centos repository Kwarg "root_as_root" in cdh.commands.write_centos_repository is unrecognized. The kwarg name is "run_as_root." Change-Id: I11d36d5676b68f706f76f85dd41df73b3e886727 Closes-Bug: #1533370 --- sahara/plugins/cdh/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahara/plugins/cdh/commands.py b/sahara/plugins/cdh/commands.py index bcaaea41..8eb1cdb3 100644 --- a/sahara/plugins/cdh/commands.py +++ b/sahara/plugins/cdh/commands.py @@ -109,7 +109,7 @@ def add_centos_repository(r, repo_list_url, repo_name): def write_centos_repository(r, repo_content, repo_name): r.write_file_to('/etc/yum.repos.d/%s.repo' % repo_name, - repo_content, root_as_root=True) + repo_content, run_as_root=True) def start_mysql_server(remote):