mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
aa29234ee0
commit
157ee4827b
|
|
@ -96,7 +96,9 @@ if __name__ == '__main__':
|
|||
parser.add_option("--guestNic", dest="guestNic", help="Guest traffic interface")
|
||||
|
||||
old_config = configFileOps("@AGENTSYSCONFDIR@/agent.properties")
|
||||
glbEnv.bridgeType = old_config.getEntry("network.bridge.type").lower()
|
||||
bridgeType = old_config.getEntry("network.bridge.type").lower()
|
||||
if bridgeType:
|
||||
glbEnv.bridgeType = bridgeType
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
if options.auto is None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue