Skip to content

Commit 9aa5446

Browse files
author
Benoit Moussaud
committed
fix rewind
1 parent 1f0a1ec commit 9aa5446

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/main/resources/delphix/DelphixClient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _logout(self):
6363
cookies=self.cookies)
6464

6565
def _get_params(self, vdb):
66-
result = {'ref': 'XXXX', 'cont': 'YYYY', 'vsrc': 'ZZZZ'}
66+
result = {'ref': 'NOT_FOUND', 'cont': 'NOT_FOUND', 'vsrc': 'NOT_FOUND'}
6767
print('- get params')
6868
headers = {'Content-type': 'application/json'}
6969

@@ -122,7 +122,7 @@ def _rewind(self, vdb):
122122
"type": "OracleRollbackParameters",
123123
"timeflowPointParameters": {
124124
"type": "TimeflowPointSemantic",
125-
"container": parameters['cont'],
125+
"container": parameters['ref'],
126126
"location": "LATEST_SNAPSHOT"
127127
}
128128
}

src/main/resources/delphix/Refresh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
sys.path.append('/Users/bmoussaud/Workspace/xebialabs-community/xlr-delphix-plugin/src/main/resources')
1414
server = {'url': 'http://ba5b5824.ngrok.io', 'username': 'delphix_admin', 'password': 'landshark'}
15-
vdb = 'ITIM'
15+
vdb = 'XEBIA'
1616

1717
from delphix.DelphixClient import DelphixClient
1818

src/main/resources/delphix/Rewind.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
sys.path.append('/Users/bmoussaud/Workspace/xebialabs-community/xlr-delphix-plugin/src/main/resources')
1414
server = {'url': 'http://ba5b5824.ngrok.io', 'username': 'delphix_admin', 'password': 'landshark'}
15-
vdb = 'ITIM'
15+
vdb = 'XEBIA'
1616

1717
from delphix.DelphixClient import DelphixClient
1818

1919
client = DelphixClient(server)
20-
client.rewind(vdb)
20+
output = client.rewind(vdb)
2121
job = output['job']
2222
action = output['action']

src/main/resources/delphix/Snapshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
sys.path.append('/Users/bmoussaud/Workspace/xebialabs-community/xlr-delphix-plugin/src/main/resources')
1414
server = {'url': 'http://ba5b5824.ngrok.io', 'username': 'delphix_admin', 'password': 'landshark'}
15-
vdb = 'ITIM'
15+
vdb = 'XEBIA'
1616

1717
from delphix.DelphixClient import DelphixClient
1818

1919
client = DelphixClient(server)
20-
client.snapshot(vdb)
20+
output = client.snapshot(vdb)
2121
job = output['job']
2222
action = output['action']

0 commit comments

Comments
 (0)