+from . import hosts
from . import exc
def check_lsb_release():
process = subprocess.Popen(
args=args,
stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
)
lsb_release_path, _ = process.communicate()
ret = process.wait()
Get LSB release information from lsb_release.
Check if lsb_release is installed on the remote host and issue
- a message if not.
+ a message if not.
Returns truple with distro, release and codename. Otherwise
the function raises an error (subprocess.CalledProcessError or
check_lsb_release_r = sudo.compile(check_lsb_release)
status = check_lsb_release_r()
except RuntimeError as e:
- raise exc.MissingPackageError(e.message)
+ return hosts.lsb_fallback(sudo)
lsb_release_r = sudo.compile(lsb_release)
return lsb_release_r()