mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-24 02:20:08 +00:00
Ensure that python3 will execute before doing migrate
If python3 is not the executable name, prevent the restoration attempt from happening.
This commit is contained in:
parent
db5c31030d
commit
13d4d1dd98
@ -240,6 +240,7 @@ def sanity_check():
|
||||
|
||||
def migrate_db():
|
||||
tdir = tempfile.mkdtemp()
|
||||
subprocess.check_call(['python3', '-c', 'pass'])
|
||||
subprocess.check_call(['python2', '/opt/confluent/bin/confluentdbutil', 'dump', '-u', tdir])
|
||||
subprocess.check_call(['python3', '/opt/confluent/bin/confluentdbutil', 'restore', '-u', tdir])
|
||||
subprocess.check_call(['rm', '-rf', tdir])
|
||||
|
Loading…
Reference in New Issue
Block a user