Skip to content

Commit 46b7c42

Browse files
authored
Merge pull request #18 from pgbidkar/master
Sample was failing if wsdl file location is passed as ../samples/vsph…
2 parents 55691f2 + 61f3e72 commit 46b7c42

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)