brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [22/50] brooklyn-library git commit: 64 bit support and fetching jclouds details
Date Mon, 01 Feb 2016 17:46:25 GMT
64 bit support and fetching jclouds details


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

Branch: refs/heads/0.4.0
Commit: a54a476e72bdf35fcc1d48cfe7ec12552e2a7b2c
Parents: 4e8721c
Author: David Ribeiro Alves <davidralves@gmail.com>
Authored: Fri Oct 5 19:35:38 2012 -0500
Committer: David Ribeiro Alves <davidralves@gmail.com>
Committed: Fri Oct 5 19:35:38 2012 -0500

----------------------------------------------------------------------
 .../java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/a54a476e/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
----------------------------------------------------------------------
diff --git a/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
b/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
index 1e84b67..3ff7c40 100644
--- a/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
+++ b/software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
@@ -37,12 +37,12 @@ public class MySqlSshDriver extends AbstractSoftwareProcessSshDriver implements
                 : new ComparableVersion(os.version).isGreaterThanOrEqualTo(OsVersions.MAC_10_6)
? "osx10.6"
                 : new ComparableVersion(os.version).isGreaterThanOrEqualTo(OsVersions.MAC_10_5)
? "osx10.5"
                 : "osx10.5";  //lowest common denominator
-            String osp2 = os.arch.equals(OsArchs.X_86_64) ? "x86_64" : "x86"
+            String osp2 = os.is64bit() ? "x86_64" : "x86"
             return osp1+"-"+osp2;
         }
         //assume generic linux
         String osp1 = "linux2.6";
-        String osp2 = os.arch.equals(OsArchs.X_86_64) ? "x86_64" : "i686"
+        String osp2 = os.is64bit() ? "x86_64" : "i686"
         return osp1+"-"+osp2;
     }
 	


Mime
View raw message