Commit 4e29b762 authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho Committed by blissadm_ID31@bibhelm
Browse files

ct2: only create object f in the machine where PCI card is installed

parent fc43e609
......@@ -3448,6 +3448,10 @@ def create_object_from_config_node(config, node):
To be used by the ct2 bliss config plugin
"""
name = node.get("name")
server_host = node['server_host']
import socket
if server_host != socket.gethostname():
return {},{}
card = create_and_configure_card(node)
return {name:card}, {name:card}
......
Supports Markdown
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