mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-21 17:29:59 -05:00
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 <pbidkar@vmware.com> Modified if conition, removed optional braces Signed-off-by: PavanBidkar <pbidkar@vmware.com>
This commit is contained in:
parent
55691f29d2
commit
61f3e72771
@ -82,8 +82,9 @@ class ExternalPscSsoWorkflow(object):
|
||||
self.args = self.argparser.parse_args()
|
||||
|
||||
def setup(self):
|
||||
self.lswsdl = self.args.lswsdl
|
||||
if not self.lswsdl:
|
||||
if self.args.lswsdl:
|
||||
self.lswsdl = os.path.abspath(self.args.lswsdl)
|
||||
else:
|
||||
self.lswsdl = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
'wsdl',
|
||||
@ -113,7 +114,6 @@ class ExternalPscSsoWorkflow(object):
|
||||
|
||||
# Convert wsdl path to url
|
||||
self.lswsdl = parse.urljoin('file:', request.pathname2url(self.lswsdl))
|
||||
|
||||
lookupservicehelper = LookupServiceHelper(wsdl_url=self.lswsdl,
|
||||
soap_url=self.lsurl,
|
||||
skip_verification=self.skip_verification)
|
||||
|
Loading…
Reference in New Issue
Block a user