Merge "Fixed a ValueError on provisioning cluster"

This commit is contained in:
Jenkins 2014-08-05 00:54:43 +00:00 committed by Gerrit Code Review
commit 27704ba330
2 changed files with 2 additions and 2 deletions

View File

@ -171,4 +171,4 @@ def _check_datanodes_count(remote, count):
'awk \'{print $3}\'')
LOG.debug("Datanode count='%s'" % stdout.rstrip())
return exit_code == 0 and int(stdout) == count
return exit_code == 0 and stdout and int(stdout) == count

View File

@ -78,7 +78,7 @@ def check_datanodes_count(remote, count):
'awk \'{print \\$3}\'" hadoop')
LOG.debug("Datanode count='%s'" % stdout.rstrip())
return exit_code == 0 and int(stdout) == count
return exit_code == 0 and stdout and int(stdout) == count
def mysql_start(remote, mysql_instance):