summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/interface/sunos.rb4
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