]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Removing sleep between when a command is sent and 'YES' is sent"
authorJenkins <jenkins@review.openstack.org>
Wed, 13 May 2015 14:40:50 +0000 (14:40 +0000)
committerGerrit Code Review <review@openstack.org>
Wed, 13 May 2015 14:40:50 +0000 (14:40 +0000)
1  2 
cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py

index 266fc3855944a02153ed4aa593cdf650992850c9,14ff95223f87a4db6caffd32df1b8f2edf6424b4..705ba1805f38691788b0ff0d036212c3aaebdcb2
@@@ -430,13 -430,12 +430,12 @@@ class CiscoFCZoneClientCLI(object)
                      attempts -= 1
                      try:
                          stdin, stdout, stderr = ssh.exec_command(command)
-                         greenthread.sleep(random.randint(20, 500) / 100.0)
                          channel = stdout.channel
                          exit_status = channel.recv_exit_status()
 -                        LOG.debug("Exit Status from ssh:%s", exit_status)
 +                        LOG.debug("Exit Status from ssh: %s", exit_status)
                          # exit_status == -1 if no exit code was returned
                          if exit_status != -1:
 -                            LOG.debug('Result was %s' % exit_status)
 +                            LOG.debug('Result was %s', exit_status)
                              if check_exit_code and exit_status != 0:
                                  raise processutils.ProcessExecutionError(
                                      exit_code=exit_status,