def get_raw_output(self, command):
    try:
        output = subprocess.check_output(command, stderr=subprocess.STDOUT)
        self.exit_code = 0
        return output
    except subprocess.CalledProcessError as ex:
        self.exit_code = ex.returncode
        return ex.output
    except Exception as e:
        self.exit_code = 1
        return "Failed to start {0} command.'                      Exeption {1}".format(command, e.output)
def get_raw_output(self, command):
    try:
        output = subprocess.check_output(command, stderr=subprocess.STDOUT)
        self.exit_code = 0
        return output
    except subprocess.CalledProcessError as ex:
        self.exit_code = ex.returncode
        return ex.output
    except Exception as e:
        self.exit_code = 1
        return "Failed to start {0} command.'                      Exeption {1}".format(command, e.output)