Skip to content

Commit

Permalink
Fix authorization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed May 20, 2024
1 parent 1a8c86f commit 0417195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dead_hosts/launcher/updater/pyfunceble_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from typing import Optional

from PyFunceble.helpers.dict import DictHelper
from PyFunceble.helpers.environment_variable import EnvironmentVariableHelper
from PyFunceble.helpers.file import FileHelper
from PyFunceble.helpers.merge import Merge

Expand Down Expand Up @@ -69,7 +70,7 @@ def authorized(self) -> bool:
return (
self.info_manager.platform_optout is True
and not self.info_manager.own_management
)
) or EnvironmentVariableHelper("PLATFORM_WORKER").get_value() is not None

@staticmethod
def get_commit_message(message: str, ping: Optional[str] = None) -> str:
Expand Down Expand Up @@ -153,7 +154,6 @@ def start(self) -> "PyFuncebleConfigUpdater":
logging.debug("Local version:\n%s", local_version)
local_version = DictHelper(local_version).unflatten()


DictHelper(local_version).to_yaml_file(
self.pyfunceble_config_file_instance.path
)
Expand Down

0 comments on commit 0417195

Please sign in to comment.