wrapper: fix self.type.capitalise() vs self.type.upper()

This commit is contained in:
InsanePrawn 2022-05-05 15:54:50 +02:00
parent 75e4efe0d7
commit ac99b0bca3

View file

@ -93,7 +93,7 @@ class BaseWrapper(Wrapper):
raise NotImplementedError()
def is_wrapped(self):
return os.getenv('KUPFERBOOTSTRAP_WRAPPED') == self.type.capitalize()
return os.getenv('KUPFERBOOTSTRAP_WRAPPED') == self.type.upper()
def get_bind_mounts_default(self, wrapped_config_path: str = None, ssh_dir: str = None, target_home: str = '/root'):
wrapped_config_path = wrapped_config_path or self.wrapped_config_path