From 3bcc011cd5f9f55e579afe9e4d03bb75f3269050 Mon Sep 17 00:00:00 2001 From: liangxin1300 Date: Wed, 21 Jul 2021 09:33:29 +0800 Subject: [PATCH] corosync --- crmsh/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crmsh/bootstrap.py b/crmsh/bootstrap.py index a4763097b9..4cc854a1b9 100644 --- a/crmsh/bootstrap.py +++ b/crmsh/bootstrap.py @@ -201,7 +201,8 @@ def load_profiles(self): env_name = USER_CUSTOMIZED with open(PROFILES_FILE) as f: data = yaml.load(f, Loader=yaml.SafeLoader) - self.profiles_dict = data[env_name] + if env_name in data: + self.profiles_dict = data[env_name] _context = None