Remote password handling
diff --git a/cfg_checker/common/other.py b/cfg_checker/common/other.py
index 97030bb..1ff5adf 100644
--- a/cfg_checker/common/other.py
+++ b/cfg_checker/common/other.py
@@ -1,5 +1,6 @@
import os
import re
+import subprocess
from cfg_checker.common.const import all_roles_map
@@ -11,6 +12,15 @@
pkg_dir = os.path.abspath(pkg_dir)
+def shell(command):
+ _ps = subprocess.Popen(
+ command.split(),
+ stdout=subprocess.PIPE
+ ).communicate()[0].decode()
+
+ return _ps
+
+
class Utils(object):
@staticmethod
def validate_name(fqdn, message=False):