Skip to content

Commit 2c788b7

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

File tree

1 file changed

+10
-8
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+10
-8
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ 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
192+
def del_instance(self, instance, options=None, old_binary=False, expect_error=False):
193+
if options == None:
194+
options = []
195+
cmd = [
196+
'del-instance',
197+
'--instance={0}'.format(instance),
198+
] + options
199+
return self.run(cmd,
200+
old_binary=old_binary,
201+
expect_error=expect_error
200202
)
201203

202204
def backup_node(

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