Commit 2cb086e7 authored by Titouan Soulard's avatar Titouan Soulard Committed by Romain Courteaud

WIP: rebase fixup

parent 1ef5246c
...@@ -111,11 +111,11 @@ class SlapOSHelpAction(argparse.Action): ...@@ -111,11 +111,11 @@ class SlapOSHelpAction(argparse.Action):
try: try:
factory = ep.load() factory = ep.load()
except Exception as err: except Exception as err:
return 'Could not load %r\n' % ep raise
try: try:
cmd = factory(self, None) cmd = factory(self, None)
except Exception as err: except Exception as err:
return 'Could not instantiate %r: %s\n' % (ep, err) raise
one_liner = cmd.get_description().split('\n')[0] one_liner = cmd.get_description().split('\n')[0]
group = getattr(factory, 'command_group', 'other') group = getattr(factory, 'command_group', 'other')
return group, ' %-13s %s\n' % (name, one_liner) return group, ' %-13s %s\n' % (name, one_liner)
......
...@@ -640,7 +640,7 @@ class Partition(object): ...@@ -640,7 +640,7 @@ class Partition(object):
'cert_file': self.cert_file, 'cert_file': self.cert_file,
'storage_home': self.instance_storage_home, 'storage_home': self.instance_storage_home,
'global_ipv4_network_prefix': self.ipv4_global_network, 'global_ipv4_network_prefix': self.ipv4_global_network,
'shared_part_list': ' '.join(self.shared_part_list.strip().splitlines(True)) 'shared_part_list': ' '.join(self.shared_part_list.strip().splitlines(True)),
'parameters_md5sum': md5digest( 'parameters_md5sum': md5digest(
json.dumps( json.dumps(
self.computer_partition.get("parameters", {}), sort_keys=True self.computer_partition.get("parameters", {}), sort_keys=True
...@@ -653,7 +653,7 @@ class Partition(object): ...@@ -653,7 +653,7 @@ class Partition(object):
), ),
'instance_state': self.computer_partition.get("state"), 'instance_state': self.computer_partition.get("state"),
'instance_software_type': self.computer_partition.get("software_type"), 'instance_software_type': self.computer_partition.get("software_type"),
'instance_processing_timestamp': self.computer_partition.get("processing_timestamp"), 'instance_processing_timestamp': self.computer_partition.get("processing_timestamp")
} }
with open(config_location, 'w') as f: with open(config_location, 'w') as f:
f.write(buildout_text) f.write(buildout_text)
......
...@@ -1348,8 +1348,8 @@ stderr_logfile_backups=1 ...@@ -1348,8 +1348,8 @@ stderr_logfile_backups=1
instance_min_free_space=self.instance_min_free_space, instance_min_free_space=self.instance_min_free_space,
instance_storage_home=self.instance_storage_home, instance_storage_home=self.instance_storage_home,
ipv4_global_network=self.ipv4_global_network, ipv4_global_network=self.ipv4_global_network,
partition_timeout=self.partition_timeout partition_timeout=self.partition_timeout,
api_backward_compatibility=self.api_backward_compatibility, api_backward_compatibility=self.api_backward_compatibility
) )
# let managers modify current partition # let managers modify current partition
......
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