Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions spec/type_aliases/host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
'[email protected]',
'%.example.com',
'2001:0d8',
'192.0.2.0/24',
'2001:db8::/32',
].each do |value|
describe value.inspect do
it { is_expected.not_to allow_value(value) }
Expand Down
2 changes: 1 addition & 1 deletion types/host.pp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# @summary Validate a host (FQDN or IP address)
type Stdlib::Host = Variant[Stdlib::Fqdn, Stdlib::IP::Address]
type Stdlib::Host = Variant[Stdlib::Fqdn, Stdlib::IP::Address::Nosubnet]