13
14
with open(os.devnull, 'w') as devnull:
14
15
version = subprocess.check_output(['juju', 'version'], stderr=devnull)
15
18
major_version = int(version[0])
16
19
except subprocess.CalledProcessError:
17
20
# In cases where the Juju Status yaml is provided by a file this may legitimately fail