mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
'use strict';
|
|
|
|
module.exports = (changeSetDescription) => {
|
|
const errorMessages = [
|
|
'No updates are to be performed.',
|
|
"The submitted information didn't contain changes.",
|
|
];
|
|
|
|
return (
|
|
changeSetDescription.Status === 'FAILED' &&
|
|
errorMessages.some(
|
|
(msg) => changeSetDescription.StatusReason && changeSetDescription.StatusReason.includes(msg)
|
|
)
|
|
);
|
|
};
|