Skip to content

Commit 65a083a

Browse files
author
Benoit Moussaud
committed
fix outputs
1 parent 936cb2a commit 65a083a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/main/resources/delphix/DelphixClient.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ def _login(self):
5858
def _logout(self):
5959
print('- logout')
6060
headers = {'Content-type': 'application/json'}
61-
r = requests.post('{0}/resources/json/delphix/logout'.format(self.server['url']),
62-
headers=headers,
63-
cookies=self.cookies)
64-
65-
return r.text
61+
requests.post('{0}/resources/json/delphix/logout'.format(self.server['url']),
62+
headers=headers,
63+
cookies=self.cookies)
6664

6765
def _get_params(self, vdb):
6866
result = {'ref': 'XXXX', 'cont': 'YYYY', 'vsrc': 'ZZZZ'}
@@ -171,17 +169,20 @@ def _response_error(self, r):
171169
def refresh(self, vdb):
172170
self._login()
173171
print("- Refresh {0} with Delphix".format(vdb))
174-
self._refresh(vdb)
172+
result = self._refresh(vdb)
175173
self._logout()
174+
return result
176175

177176
def snapshot(self, vdb):
178177
self._login()
179178
print("- Snapshot {0} with Delphix".format(vdb))
180-
self._snapshot(vdb)
179+
result = self._snapshot(vdb)
181180
self._logout()
181+
return result
182182

183183
def rewind(self, vdb):
184184
self._login()
185185
print("- Rewind {0} with Delphix".format(vdb))
186-
self._rewind(vdb)
186+
result = self._rewind(vdb)
187187
self._logout()
188+
return result

src/main/resources/synthetic.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<property name="password" password="true" category="input" required="false"/>
2727

2828
<property name="vdb" category="input"/>
29-
29+
3030
<property name="job" category="output" required="false"/>
3131
<property name="action" category="output" required="false"/>
3232

0 commit comments

Comments
 (0)