Exception: Bolt::Inventory::Inventory2::WildcardError

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/inventory/inventory2.rb

Overview

This uses “targets” in the message instead of “nodes”

Instance Attribute Summary

Attributes inherited from Error

#details, #error_code, #issue_code, #kind

Instance Method Summary collapse

Methods inherited from Error

#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task

Constructor Details

#initialize(target) ⇒ WildcardError

Returns a new instance of WildcardError.



12
13
14
# File 'lib/bolt/inventory/inventory2.rb', line 12

def initialize(target)
  super("Found 0 targets matching wildcard pattern #{target}", 'bolt.inventory/wildcard-error')
end