Skip to content

Commit 5ebfd57

Browse files
committed
vsphere: improve error message
1 parent 89ca375 commit 5ebfd57

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

kvirt/providers/vsphere/helpers.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ def waitForMe(t):
1111
while t.info.state not in [vim.TaskInfo.State.success, vim.TaskInfo.State.error]:
1212
time.sleep(1)
1313
if t.info.state == vim.TaskInfo.State.error:
14-
error(t.info.description)
15-
error(t.info.error)
14+
if t.info.description is not None:
15+
error(t.info.description)
16+
error(t.info.error.msg)
1617
sys.exit(1)
1718

1819

openshift-ci-paramfiles/vsphere.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
client: sphere_karim
1+
client: mysphere
22
cluster: ci-vsphere
33
domain: karmalabs.corp
44
sslip: true

0 commit comments

Comments
 (0)