Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1505 from dajohnso/log_tweak
Browse files Browse the repository at this point in the history
logging tweak
  • Loading branch information
dajohnso committed Jan 12, 2015
2 parents 27224cf + 4cb5723 commit 2b40fe4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cfme/tests/infrastructure/test_vm_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ def get_appliance(provider_crud):
provider_name=provider_crud.key)
logger.info("appliance IP address: " + str(appliance.address))
appliance.configure(setup_fleece=True)
except Exception:
logger.error('Appliance encountered error during initial setup, deleting...')
appliance.destroy()
raise CFMEException('Appliance encountered error during initial setup')
except Exception as e:
if appliance is not None:
appliance.destroy()
raise CFMEException(
'Appliance encountered error during initial setup: {}'.format(str(e)))
appliance_list[provider_crud.key] = appliance
return appliance_list[provider_crud.key]

Expand Down

0 comments on commit 2b40fe4

Please sign in to comment.