Skip to content

Commit 7e2d748

Browse files
authored
Update splunkversioncontrol_restore_class.py
1 parent 02c408c commit 7e2d748

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/splunkversioncontrol_restore_class.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def run_script(self):
889889
logger.warn("i=\"%s\" Unexpected failure while attempting to trust the remote git repo?! stdout '%s' stderr '%s'" % (self.stanzaName, output, stderrout))
890890

891891
#Clone the remote git repo
892-
(output, stderrout, res) = self.runOSProcess("cd %s; git clone %s" % (self.gitTempDir, self.gitRepoURL), timeout=30)
892+
(output, stderrout, res) = self.runOSProcess("cd %s; git clone %s" % (self.gitTempDir, self.gitRepoURL), timeout=120)
893893
if res == False:
894894
logger.fatal("i=\"%s\" git clone failed for some reason...on url=%s stdout of '%s' with stderrout of '%s'" % (self.stanzaName, self.gitRepoURL, output, stderrout))
895895
sys.exit(1)
@@ -907,7 +907,7 @@ def run_script(self):
907907
logger.info("i=\"%s\" No restore required at this point in time" % (self.stanzaName))
908908
else:
909909
#Do a git pull to ensure we are up-to-date
910-
(output, stderrout, res) = self.runOSProcess("cd %s; git checkout master; git pull" % (self.gitTempDir), timeout=30)
910+
(output, stderrout, res) = self.runOSProcess("cd %s; git checkout master; git pull" % (self.gitTempDir), timeout=120)
911911
if res == False:
912912
logger.fatal("i=\"%s\" git pull failed for some reason...on url=%s stdout of '%s' with stderrout of '%s'" % (self.stanzaName, self.gitRepoURL, output, stderrout))
913913
sys.exit(1)
@@ -1092,4 +1092,4 @@ def runOSProcess(self, command, timeout=10):
10921092
else:
10931093
return stdoutdata, stderrdata, True
10941094
p.kill()
1095-
return "", "timeout after %s seconds" % (timeout), False
1095+
return "", "timeout after %s seconds" % (timeout), False

0 commit comments

Comments
 (0)