Skip to content

Commit 61f3e72

Browse files
committed
Sample was failing if wsdl file location is passed as ../samples/vsphere/sso/wsdl/lookupservice.wsdl.
Modified Samples to convert passed wsdl file path to abspath Added If condition to check wsdlpath is passed Signed-off-by: PavanBidkar <[email protected]> Modified if conition, removed optional braces Signed-off-by: PavanBidkar <[email protected]>
1 parent 55691f2 commit 61f3e72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/vsphere/sso/external_psc_sso_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ def options(self):
8282
self.args = self.argparser.parse_args()
8383

8484
def setup(self):
85-
self.lswsdl = self.args.lswsdl
86-
if not self.lswsdl:
85+
if self.args.lswsdl:
86+
self.lswsdl = os.path.abspath(self.args.lswsdl)
87+
else:
8788
self.lswsdl = os.path.join(
8889
os.path.dirname(os.path.abspath(__file__)),
8990
'wsdl',
@@ -113,7 +114,6 @@ def run(self):
113114

114115
# Convert wsdl path to url
115116
self.lswsdl = parse.urljoin('file:', request.pathname2url(self.lswsdl))
116-
117117
lookupservicehelper = LookupServiceHelper(wsdl_url=self.lswsdl,
118118
soap_url=self.lsurl,
119119
skip_verification=self.skip_verification)

0 commit comments

Comments
 (0)