         name = 'redhat' if name.toLowerCase() is 'red hat'
         # Remove patch version (eg centos 7.8)
         version = "#{match[0]}" if match = /^(\d+)\.(\d+)/.exec version
-        match = conditions.if_os.some (condition) ->
+        match = action.conditions.if_os.some (condition) ->
           a = !condition.arch.length || condition.arch.some (value) ->
             return true if typeof value is 'string' and value is arch
             return true if value instanceof RegExp and value.test arch

    '@nikitajs/engine/src/plugins/conditions'
  ]
  hooks:
    'nikita:session:action':
      after: '@nikitajs/engine/src/plugins/conditions'
      before: '@nikitajs/engine/src/metadata/disabled'

        name = 'redhat' if name.toLowerCase() is 'red hat'
        # Remove patch version (eg centos 7.8)
        version = "#{match[0]}" if match = /^(\d+)\.(\d+)/.exec version
        match = action.conditions.unless_os.some (condition) ->
          a = !condition.arch.length || condition.arch.some (value) ->
            return true if typeof value is 'string' and value is arch
            return true if value instanceof RegExp and value.test arch
