Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 493cc1d

Browse files
committed
Fix operator precedence issues
1 parent 78c8332 commit 493cc1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/plugins/dns/nsupdate.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
warning "Use the last field in the generated key file /var/named/K${openshift_origin::domain}*.key"
3030
fail 'bind_key is required.'
3131
}
32-
if !$::openshift_origin::bind_krb_principal == '' and $::openshift_origin::bind_krb_keytab == '' {
33-
warning "Kerberos keytab for the DNS service was not found. Please generate a keytab for DNS/${::openshift_origin::nameserver_fqdn}"
32+
if $::openshift_origin::bind_krb_principal != '' and $::openshift_origin::bind_krb_keytab == '' {
33+
warning "Kerberos keytab for the DNS service was not set. Please generate a keytab for DNS/${::openshift_origin::nameserver_fqdn} and provide a path for the keytab."
3434
fail 'bind_krb_keytab is required.'
3535
}
3636

@@ -41,7 +41,7 @@
4141
],
4242
}
4343

44-
if !$::openshift_origin::bind_krb_principal == '' {
44+
if $::openshift_origin::bind_krb_principal != '' {
4545
file { 'broker-dns-keytab':
4646
ensure => present,
4747
path => $::openshift_origin::bind_krb_keytab,

0 commit comments

Comments
 (0)