Put SR URL fetch in try so that it doesn't break slapgrid in case of problem

parent dda065a5
...@@ -648,6 +648,7 @@ class Slapgrid(object): ...@@ -648,6 +648,7 @@ class Slapgrid(object):
exception = traceback.format_exc() exception = traceback.format_exc()
logger.error(exception) logger.error(exception)
try:
software_path = os.path.join(self.software_root, software_path = os.path.join(self.software_root,
getSoftwareUrlHash(software_url)) getSoftwareUrlHash(software_url))
local_partition = Partition( local_partition = Partition(
...@@ -664,7 +665,7 @@ class Slapgrid(object): ...@@ -664,7 +665,7 @@ class Slapgrid(object):
software_release_url=software_url, software_release_url=software_url,
certificate_repository_path=self.certificate_repository_path, certificate_repository_path=self.certificate_repository_path,
console=self.console, buildout=self.buildout) console=self.console, buildout=self.buildout)
try:
computer_partition_state = computer_partition.getState() computer_partition_state = computer_partition.getState()
if computer_partition_state == "started": if computer_partition_state == "started":
local_partition.install() local_partition.install()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment