Skip to content

Commit c6c6d22

Browse files
committed
Fix del_instance function to receive options from tests
1 parent 0edc937 commit c6c6d22

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
@@ -189,15 +189,13 @@ def set_backup(self, instance, backup_id=False,
189189

190190
return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)
191191

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

202200
def backup_node(
203201
self, instance, node, data_dir=False,

0 commit comments

Comments
 (0)