Skip to content

Commit e9a6d47

Browse files
committed
agent: fix network.bridge.type to be optional
New network.bridge.type was introduced, but for buckward compatibility, the key should be optional. Signed-off-by: Hiroaki KAWAI <kawai@stratosphere.co.jp>
1 parent 883333c commit e9a6d47

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

agent/bindir/cloud-setup-agent.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ if __name__ == '__main__':
9696
parser.add_option("--guestNic", dest="guestNic", help="Guest traffic interface")
9797

9898
old_config = configFileOps("@AGENTSYSCONFDIR@/agent.properties")
99-
glbEnv.bridgeType = old_config.getEntry("network.bridge.type").lower()
99+
bridgeType = old_config.getEntry("network.bridge.type").lower()
100+
if bridgeType:
101+
glbEnv.bridgeType = bridgeType
100102

101103
(options, args) = parser.parse_args()
102104
if options.auto is None:

0 commit comments

Comments
 (0)