def machine_distribution(self): """ Retrieves the distribution information of the host. :return: dictionary of the platform distribution as returned from 'platform.dist()' """ response = self.python(imports_line='import platform, json', command='json.dumps(platform.dist())') return api_utils.json_loads(response)
def machine_distribution(self): """ Retrieves the distribution information of the host. :return: dictionary of the platform distribution as returned from 'platform.dist()' """ response = self.python( imports_line='import platform, json', command='json.dumps(platform.dist())' ) return api_utils.json_loads(response)
def machine_distribution(self, **attributes): """ Retrieves the distribution information of the host. :param attributes: custom attributes passed directly to fabric's run command :return: dictionary of the platform distribution as returned from 'platform.dist()' """ response = self.python(imports_line='import platform, json', command='json.dumps(platform.dist())', **attributes) return api_utils.json_loads(response)
def machine_distribution(self, **attributes): """ Retrieves the distribution information of the host. :param attributes: custom attributes passed directly to fabric's run command :return: dictionary of the platform distribution as returned from 'platform.dist()' """ response = self.python( imports_line='import platform, json', command='json.dumps(platform.dist())', **attributes ) return api_utils.json_loads(response)