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

+7-9
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)