Skip to content

Commit a078792

Browse files
Fix del_instance function to receive options from tests (#105)
1 parent 979671d commit a078792

File tree

1 file changed

+7
-9
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+7
-9
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,13 @@ def set_backup(self, instance, backup_id=False,
192192

193193
return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)
194194

195-
def del_instance(self, instance, old_binary=False, expect_error=False):
196-
197-
return self.run([
198-
'del-instance',
199-
'--instance={0}'.format(instance),
200-
],
201-
old_binary=old_binary,
202-
expect_error=expect_error
203-
)
195+
def del_instance(self, instance, options=None, old_binary=False, expect_error=False):
196+
if options is None:
197+
options = []
198+
cmd = ['del-instance', '--instance={0}'.format(instance)] + options
199+
return self.run(cmd,
200+
old_binary=old_binary,
201+
expect_error=expect_error)
204202

205203
def backup_node(
206204
self, instance, node, data_dir=False,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy