def KeyToFilename(self, key):
    """Convert a given key into filename.

    """
    if _VALID_KEYS not in key:
      raise errors.ProgrammerError("Invalid key requested from SSConf: '%s'"
                                   % str(key))

    filename = self._cfg_dir + "/" + constants.SSCONF_FILEPREFIX + key
    return filename
dataset/ETHPy150Open ganeti/ganeti/lib/ssconf.py/SimpleStore.KeyToFilename/swapped operands of `not in`