feat: remove some duplicated stuff from Pulumi log events

This commit is contained in:
Stefan Reimer 2021-10-05 12:47:29 +02:00
parent ea3361886b
commit 5321ea0aff

View File

@ -877,7 +877,6 @@ class Stack(object):
return kwargs return kwargs
def _log_pulumi(self, text): def _log_pulumi(self, text):
# Remove some duplicated noise text = re.sub(r'pulumi:pulumi:Stack\s*{}-{}\s*'.format(self.parameters['Conglomerate'], self.stackname), '', text)
text = re.sub('pulumi:pulumi:Stack {}-{}( running)?'.format(self.parameters['Conglomerate'], self.stackname), '', text) if text and not text.isspace():
if text:
logger.info(" ".join([self.region, self.stackname, text])) logger.info(" ".join([self.region, self.stackname, text]))