Enter and Leave states with Update modules


Is it possible to use the _Enter and _Leave states in update Modules ? If yes , what should be the syntax ? I have tried using something like this but it doesn’t seem to be working.


case "$STATE" in
        echo "In ArtifactCommit" "Files- $FILES, DEST-$DEST"
        echo "In ArtifactCommit_Leave" "Files- $FILES, DEST-$DEST"
exit 0

I have also tried using the state-script naming syntax (ArtifactCommit_Leave_00) with out any success.

No, it’s not possible, Enter and Leave states are reserved for state scripts only.