Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66cee83

Browse files
committed
if needed, allow to reinitialize the environment for takeover - issue #396
1 parent d91530f commit 66cee83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/takeover/abstraction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def _initRunAs(self):
171171
# expression = getSQLSnippet(DBMS.PGSQL, "configure_dblink", ENABLE="1")
172172
# inject.goStacked(expression)
173173

174-
def initEnv(self, mandatory=True, detailed=False, web=False):
174+
def initEnv(self, mandatory=True, detailed=False, web=False, forceInit=False):
175175
self._initRunAs()
176176

177-
if self.envInitialized:
177+
if self.envInitialized and not forceInit:
178178
return
179179

180180
if web:

0 commit comments

Comments
 (0)