Don't hard code the configuration paths. Please replace `/etc/salt/minion` with `os.path.join(salt.syspaths.CONFIG_DIR, 'minion')`.