(self, host, namespace, wmi_class, other=None)
return "{host}:{namespace}:{wmi_class}".format(host=host, namespace=namespace, wmi_class=wmi_class)
Return an index key for a given instance. Useful for caching.
Return an index key for a given instance. Useful for caching.
Return an index key for a given instance . Useful for caching .
def _get_instance_key(self, host, namespace, wmi_class, other=None):
        # type: (str, str, str, Any) -> str
        """
        Return an index key for a given instance. Useful for caching.
        """
        if other:
            return "{host}:{namespace}:{wmi_class}-{other}".format(
                host=host, namespace=namespace, wmi_class=wmi_class, other=other
            )
        return "{host}:{namespace}:{wmi_class}".format(host=host, namespace=namespace, wmi_class=wmi_class)
def _get_instance_key ( self , host , namespace , wmi_class , other = None ) : # type: (str, str, str, Any) -> str if other : return "{host}:{namespace}:{wmi_class}-{other}" . format ( host = host , namespace = namespace , wmi_class = wmi_class , other = other ) return "{host}:{namespace}:{wmi_class}" . format ( host = host , namespace = namespace , wmi_class = wmi_class )