Commit cef047c6 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slapformat: fix missing portal type and missing option

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