cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject git commit: updated refs/heads/master to e9a6d47
Date Tue, 28 May 2013 02:56:52 GMT
Updated Branches:
  refs/heads/master 883333c21 -> e9a6d4731


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>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e9a6d473
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e9a6d473
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e9a6d473

Branch: refs/heads/master
Commit: e9a6d47316d8de90eb662e9938ea7fcbe0ee0596
Parents: 883333c
Author: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Authored: Tue May 28 11:55:21 2013 +0900
Committer: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Committed: Tue May 28 11:56:42 2013 +0900

----------------------------------------------------------------------
 agent/bindir/cloud-setup-agent.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e9a6d473/agent/bindir/cloud-setup-agent.in
----------------------------------------------------------------------
diff --git a/agent/bindir/cloud-setup-agent.in b/agent/bindir/cloud-setup-agent.in
index d6f481d..6932672 100755
--- a/agent/bindir/cloud-setup-agent.in
+++ b/agent/bindir/cloud-setup-agent.in
@@ -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:


Mime
View raw message