summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-24 12:18:42 -0500
committerLuke Kanies <luke@madstop.com>2008-08-26 22:40:40 -0700
commit89a3738d2b0678ae8fb1e7191e01caf6c5ece1f9 (patch)
tree8a698a3604ba07ae22df9caf6dc130dd9cd8d83a /lib/puppet
parenta0bda8532f5e1e9f5bb29eb92f389383ae0857d5 (diff)
downloadpuppet-89a3738d2b0678ae8fb1e7191e01caf6c5ece1f9.tar.gz
puppet-89a3738d2b0678ae8fb1e7191e01caf6c5ece1f9.tar.xz
puppet-89a3738d2b0678ae8fb1e7191e01caf6c5ece1f9.zip
Adding suitability as a requirement for a format being supported.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/network/format.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/network/format.rb b/lib/puppet/network/format.rb
index 5f259fa49..3e0a7d8aa 100644
--- a/lib/puppet/network/format.rb
+++ b/lib/puppet/network/format.rb
@@ -55,7 +55,8 @@ class Puppet::Network::Format
end
def supported?(klass)
- klass.respond_to?(intern_method) and
+ suitable? and
+ klass.respond_to?(intern_method) and
klass.respond_to?(intern_multiple_method) and
klass.respond_to?(render_multiple_method) and
klass.instance_methods.include?(render_method)