Commit dbf31d66 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapformat: fix missing portal type and missing option

parent 99c71158
...@@ -369,7 +369,8 @@ class Computer(object): ...@@ -369,7 +369,8 @@ class Computer(object):
return return
slap_instance.jio_api_connector.put({ slap_instance.jio_api_connector.put({
"compute_node_id": self.reference, "compute_node_id": self.reference,
"compute_partition_list": partition_list "compute_partition_list": partition_list,
"portal_type": "Compute Node",
}) })
else: else:
slap_computer = slap_instance.registerComputer(self.reference) slap_computer = slap_instance.registerComputer(self.reference)
...@@ -1478,6 +1479,7 @@ class FormatConfig(object): ...@@ -1478,6 +1479,7 @@ class FormatConfig(object):
dry_run = None # modifiable by cmdline dry_run = None # modifiable by cmdline
key_file = None key_file = None
cert_file = None cert_file = None
slapgrid_jio_uri = None
def __init__(self, logger): def __init__(self, logger):
self.logger = logger self.logger = logger
......
...@@ -747,6 +747,7 @@ class TestFormatSendToMaster(SlapformatMixin): ...@@ -747,6 +747,7 @@ class TestFormatSendToMaster(SlapformatMixin):
self.body_sequence, self.body_sequence,
[ [
{ {
'portal_type': 'Compute Node',
'compute_node_id': 'computer', 'compute_node_id': 'computer',
'compute_partition_list': [ 'compute_partition_list': [
{ {
......
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