MCPcopy Create free account
hub / github.com/apache/cloudstack / getServer

Method getServer

python/lib/cloudutils/syscfg.py:56–65  ·  view source on GitHub ↗
(glbEnv)

Source from the content-addressed store, hash-verified

54class sysConfigServerFactory:
55 @staticmethod
56 def getServer(glbEnv):
57 glbEnv.distribution = Distribution()
58 distribution = glbEnv.distribution.getVersion()
59 if distribution == "Ubuntu":
60 return sysConfigServerUbuntu(glbEnv)
61 elif distribution != "Unknown":
62 return sysConfigServerRedhat(glbEnv)
63 else:
64 print("Can't find the distribution version")
65 return sysConfig()
66
67class sysConfigDbFactory:
68 @staticmethod

Callers 1

getSysConfigFactoryMethod · 0.45

Calls 5

DistributionClass · 0.85
sysConfigClass · 0.85
getVersionMethod · 0.65

Tested by

no test coverage detected