Enter and Leave states with Update modules

Hello,

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.

#!/bin/sh

case "$STATE" in
    ArtifactCommit)
        echo "In ArtifactCommit" "Files- $FILES, DEST-$DEST"
    ;;
   ArtifactCommit_Leave)
        echo "In ArtifactCommit_Leave" "Files- $FILES, DEST-$DEST"
   ;;
esac
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.