def _get_lock_name(self, values):
        """
        Return a safe string which can be used as a lock name.

        :param values: Dictionary with values to use in the lock name.
        :type values: ``dict``

        :rtype: ``st``
        """
        lock_uid = []

        for key, value in six.iteritems(values):
            lock_uid.append('%s=%s' % (key, value))

        lock_uid = ','.join(lock_uid)
        return lock_uid
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/policies/base.py/ResourcePolicyApplicator._get_lock_name/original