Synchronous actions were introduced in Solaris 11.2 to be precise.

This commit is contained in:
Jasper Lievisse Adriaanse 2017-01-25 20:01:03 +01:00 committed by Brian Coca
parent a412be32b5
commit 4a594b3702

View file

@ -1310,10 +1310,10 @@ class SunOSService(Service):
def svcadm_supports_sync(self):
# Support for synchronous restart/refresh is only supported on
# Oracle Solaris >= 11.
# Oracle Solaris >= 11.2
for line in open('/etc/release', 'r').readlines():
m = re.match('\s+Oracle Solaris (\d+\.\d+).*', line.rstrip())
if m and m.groups()[0] > 10:
if m and m.groups()[0] >= 11.2:
return True
def get_service_status(self):