diff --git a/features/environment.py b/features/environment.py index d89c848c67..b838775e4f 100644 --- a/features/environment.py +++ b/features/environment.py @@ -256,7 +256,13 @@ def from_environ(cls, config) -> "UAClientBehaveConfig": kwargs[key] = bool_value if "install_from" in kwargs: - kwargs["install_from"] = InstallationSource(kwargs["install_from"]) + if str(kwargs["install_from"]).startswith("ppa:"): + kwargs["custom_ppa"] = kwargs["install_from"] + kwargs["install_from"] = InstallationSource.CUSTOM + else: + kwargs["install_from"] = InstallationSource( + kwargs["install_from"] + ) return cls(**kwargs) # type: ignore