1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-24 10:19:59 -05:00

Merge pull request #18 from pgbidkar/master

Sample was failing if wsdl file location is passed as ../samples/vsph…
This commit is contained in:
Tianhao He 2017-04-17 10:10:13 -07:00 committed by GitHub
commit 46b7c426cc

View File

@ -82,8 +82,9 @@ class ExternalPscSsoWorkflow(object):
self.args = self.argparser.parse_args() self.args = self.argparser.parse_args()
def setup(self): def setup(self):
self.lswsdl = self.args.lswsdl if self.args.lswsdl:
if not self.lswsdl: self.lswsdl = os.path.abspath(self.args.lswsdl)
else:
self.lswsdl = os.path.join( self.lswsdl = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.path.dirname(os.path.abspath(__file__)),
'wsdl', 'wsdl',
@ -113,7 +114,6 @@ class ExternalPscSsoWorkflow(object):
# Convert wsdl path to url # Convert wsdl path to url
self.lswsdl = parse.urljoin('file:', request.pathname2url(self.lswsdl)) self.lswsdl = parse.urljoin('file:', request.pathname2url(self.lswsdl))
lookupservicehelper = LookupServiceHelper(wsdl_url=self.lswsdl, lookupservicehelper = LookupServiceHelper(wsdl_url=self.lswsdl,
soap_url=self.lsurl, soap_url=self.lsurl,
skip_verification=self.skip_verification) skip_verification=self.skip_verification)