Commit 05c87b9c authored by Lu Xu's avatar Lu Xu 👀

wip

parent 368568b5
......@@ -36,7 +36,7 @@ md5sum = b34fe47a73890097fbc6ea6374aeb38d
[lopcomm-rrh-software.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-software.jinja2.py
md5sum = cc23b3e09144753e2f53841b1426ee18
md5sum = 04864d7eb1319c8451f3f92c5cf18629
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
......
......@@ -95,7 +95,7 @@ if __name__ == '__main__':
active_slot_name = None
software_slots = inventory_data['nc:rpc-reply']['data']['software-inventory']['software-slot']
for slot in software_slots:
if slot['active'] == 'true':
if slot['active'] == 'false' and slot['running'] == 'false':
active_slot_name = slot['name']
break
......@@ -112,6 +112,7 @@ if __name__ == '__main__':
if install_reply_xml:
install_data = xmltodict.parse(install_reply_xml)
nc.software_output_json_logger.info('', extra={'data': install_data})
break
except Exception as e:
nc.logger.debug('Got exception, waiting 10 seconds before reconnecting...')
......
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