diff --git a/lib/puppet/provider/network_config/redhat.rb b/lib/puppet/provider/network_config/redhat.rb index 16b00be5..6a0428c4 100644 --- a/lib/puppet/provider/network_config/redhat.rb +++ b/lib/puppet/provider/network_config/redhat.rb @@ -228,6 +228,6 @@ def self.unmunge(props) end def self.post_flush_hook(filename) - File.chmod(0644, filename) + File.chmod(0o644, filename) end end diff --git a/spec/unit/provider/network_config/redhat_spec.rb b/spec/unit/provider/network_config/redhat_spec.rb index 199a9c53..06cefa4d 100644 --- a/spec/unit/provider/network_config/redhat_spec.rb +++ b/spec/unit/provider/network_config/redhat_spec.rb @@ -492,7 +492,7 @@ def fixture_data(file) describe 'when flushing a dirty file' do it do - File.expects(:chmod).with(0644, '/not/a/real/file') + File.expects(:chmod).with(0o644, '/not/a/real/file') File.expects(:unlink).never described_class.stubs(:perform_write) described_class.dirty_file!('/not/a/real/file')