From 5bc02b03374bb8987cede248ff2e0598ad80bd6f Mon Sep 17 00:00:00 2001 From: aksm Date: Thu, 15 Jun 2023 14:41:15 -0400 Subject: [PATCH] Only give message if AMI is asked to be created. --- src/Plugin/Action/AmiStrawberryfieldCSVexport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Action/AmiStrawberryfieldCSVexport.php b/src/Plugin/Action/AmiStrawberryfieldCSVexport.php index 0b8a15b..1787307 100644 --- a/src/Plugin/Action/AmiStrawberryfieldCSVexport.php +++ b/src/Plugin/Action/AmiStrawberryfieldCSVexport.php @@ -405,7 +405,7 @@ protected function sendToFile($output) { ['@url' => $url->toString()])); } } - else if (!$this->context['sandbox']['ado_type_exists']) { + else if ($this->configuration['create_ami_set'] && !$this->context['sandbox']['ado_type_exists']) { $this->messenger() ->addStatus($this->t('AMI Set could not be created because object(s) are missing the type key.')); }