Skip to content

Commit

Permalink
Remove legacy top-scope syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Nov 23, 2023
1 parent 97d2db1 commit e630e93
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions manifests/files.pp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
source => $maincf_source,
}

::postfix::config {
postfix::config {
'alias_maps': value => $alias_maps;
'inet_interfaces': value => $inet_interfaces;
'inet_protocols': value => $inet_protocols;
Expand All @@ -110,7 +110,7 @@

case $facts['os']['family'] {
'RedHat': {
::postfix::config {
postfix::config {
'mailq_path': value => '/usr/bin/mailq.postfix';
'newaliases_path': value => '/usr/bin/newaliases.postfix';
'sendmail_path': value => '/usr/sbin/sendmail.postfix';
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postfix_conffile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:title) { 'foo' }

let :pre_condition do
"class { '::postfix': }"
"class { 'postfix': }"
end

on_supported_os.each do |os, facts|
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postfix_hash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:title) { '/tmp/foo' }

let :pre_condition do
"class { '::postfix': }"
"class { 'postfix': }"
end

on_supported_os.each do |os, facts|
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postfix_map_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:title) { 'foo' }

let :pre_condition do
"class { '::postfix': }"
"class { 'postfix': }"
end

on_supported_os.each do |os, facts|
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postfix_transport_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let :pre_condition do
<<-EOT
class { '::augeas': }
class { '::postfix': }
class { 'postfix': }
EOT
end

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postfix_virtual_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let :pre_condition do
<<-EOT
class { '::augeas': }
class { '::postfix': }
class { 'postfix': }
EOT
end

Expand Down

0 comments on commit e630e93

Please sign in to comment.