We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e53ae commit 298c93eCopy full SHA for 298c93e
1 file changed
rhos_bootstrap/distribution.py
@@ -40,9 +40,8 @@ def __init__(
40
"""Distribution Information class"""
41
_id, _version_id, _name = (None, None, None)
42
if not distro_id or not distro_version_id or not distro_name:
43
- cmd = "source /etc/os-release && " 'echo -e -n "$ID\n$VERSION_ID\n$NAME"'
44
with subprocess.Popen(
45
- cmd,
+ "source /etc/os-release && " 'echo -e -n "$ID\n$VERSION_ID\n$NAME"',
46
shell=True,
47
stdout=subprocess.PIPE,
48
stderr=subprocess.DEVNULL,
0 commit comments