Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created July 31, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/37e42bf2cb9094f8941c5386eb74c01e to your computer and use it in GitHub Desktop.
Save nickanderson/37e42bf2cb9094f8941c5386eb74c01e to your computer and use it in GitHub Desktop.

How can I use an or with a classes type promise where an element uses not()?

Created From: ENT-4863: Flip flopping file permissions in master
 bundle agent main
 {
   classes:
     "my_class" or => { classify( not( fileexists( "/tmp/missing" ) ) ) };

    reports:
     my_class:: 
      "my_class is defined";
}
R: my_class is defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment