Fix OS environment repository detection override

This commit is contained in:
allegroai 2019-07-06 23:00:28 +03:00
parent c3eb5fd8b0
commit 3050bf1476

View File

@ -215,7 +215,7 @@ class EnvDetector(Detector):
super(EnvDetector, self).__init__(type_name, "{} environment".format(type_name))
def _is_repo_type(self, script_path):
return VCS_REPO_TYPE.get(default="").lower() == self.type_name and bool(
return VCS_REPO_TYPE.get().lower() == self.type_name and bool(
VCS_REPOSITORY_URL.get()
)