Fixed remote call in external HDFS configuration method

Before the change code was failing with exception. Probably
parentheses were not added during remote engine refactoring for
heat engine preparation.

Blueprint to create integration test: it-external-hdfs

Change-Id: If9aef3be0cc88133d6e20c9e3ffb1ef75e16443c
Closes-Bug: #1329079
This commit is contained in:
Andrew Lazarev 2014-06-11 15:07:31 -07:00
parent c05244ba42
commit 8b732228dc
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def configure_cluster_for_hdfs(cluster, data_source):
copy_etc_host = 'sudo "cat /tmp/etc-hosts > /etc/hosts"'
for inst in u.get_instances(cluster):
with inst.remote as r:
with inst.remote() as r:
r.write_file_to('/tmp/etc-hosts-update', etc_hosts_information)
r.execute_command(create_etc_host)
r.execute_command(copy_etc_host)