diff options
author | Luke Kanies <luke@madstop.com> | 2007-11-23 12:57:16 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-11-23 12:57:16 -0600 |
commit | 8cbe8bded645b1006d7fdf48c6084cdbcf3d2621 (patch) | |
tree | 4f4e79f70cedbdba5897d00fc248c24192d36cc7 /lib/puppet/provider/interface/sunos.rb | |
parent | 3d2e1a535ba38dc0ebb8cb80f6a8d0f2bd3516f9 (diff) | |
download | puppet-8cbe8bded645b1006d7fdf48c6084cdbcf3d2621.tar.gz puppet-8cbe8bded645b1006d7fdf48c6084cdbcf3d2621.tar.xz puppet-8cbe8bded645b1006d7fdf48c6084cdbcf3d2621.zip |
Adding unit tests for the sunos interface provider.
Diffstat (limited to 'lib/puppet/provider/interface/sunos.rb')
-rw-r--r-- | lib/puppet/provider/interface/sunos.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/interface/sunos.rb b/lib/puppet/provider/interface/sunos.rb index 6c55eae8e..99ddcd2f4 100644 --- a/lib/puppet/provider/interface/sunos.rb +++ b/lib/puppet/provider/interface/sunos.rb @@ -106,10 +106,10 @@ Puppet::Type.type(:interface).provide(:sunos, # Where should the file be written out? Can be overridden by setting # :target in the model. def file_path - unless @resource[:interface] + unless resource[:interface] raise ArgumentError, "You must provide the interface name on Solaris" end - return File.join("/etc", "hostname." + @resource[:interface]) + return File.join("/etc", "hostname." + resource[:interface]) end end |