mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Catch a few more errors related to wrong/missing launch templates
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
45a2df05d8
commit
d53f98dd58
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ class VM:
|
|||
LaunchTemplateName=LAUNCH_TEMPLATE_NAME_FMT.format(self.config.ami)
|
||||
)
|
||||
except ClientError as exc:
|
||||
if "InvalidLaunchTemplateName.NotFoundException" not in str(exc):
|
||||
if "InvalidLaunchTemplateName." not in str(exc):
|
||||
raise
|
||||
self.ctx.error(f"Could not find a launch template for {self.name!r}")
|
||||
self.ctx.exit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue