Skip to content

Commit 7015fcd

Browse files
committed
Allow any Boolean for no-custom-facts and no-ruby
While in reality the flag only accepts `false`, kafo doesn't understand the Boolean[false] notation and we shouldn't use it until it does.
1 parent c87087a commit 7015fcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

types/facter/config/global.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
Optional['external-dir'] => Array[Stdlib::Absolutepath],
88
Optional['custom-dir'] => Array[Stdlib::Absolutepath],
99
Optional['no-external-facts'] => Boolean,
10-
Optional['no-custom-facts'] => Boolean[false], # Cannot be true
11-
Optional['no-ruby'] => Boolean[false], # Cannot be true
10+
Optional['no-custom-facts'] => Boolean, # Should be Boolean[false], as it cannot be true, but that breaks kafo
11+
Optional['no-ruby'] => Boolean, # Should be Boolean[false], as it cannot be true, but that breaks kafo
1212
}]

0 commit comments

Comments
 (0)