Skip to content

Commit

Permalink
Allow to patch service and resource spec with the same status (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelavega authored Feb 7, 2025
1 parent 5673df6 commit a66faac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmfUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@ exports.isValidStatusTransition = function(firstSt, nextSt) {
const firstInd = lifecycle.indexOf(firstSt.toLowerCase())
const nextInd = lifecycle.indexOf(nextSt.toLowerCase())

return firstInd > -1 && nextInd > -1 && nextInd == firstInd + 1
return firstInd > -1 && nextInd > -1 && (nextInd == firstInd + 1 || nextInd == firstInd)
}

0 comments on commit a66faac

Please sign in to comment.