Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Mar 24, 2010
1 parent 4650609 commit eb8e8c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/crm/colocation.pp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
define ha::crm::colocation($score, $resource1_name, $resource1_role = "undef", $resource2_name, $resource2_role = "undef", $ensure = present) {
define ha::crm::colocation($score, $resource1_name, $resource1_role = "", $resource2_name, $resource2_role = "", $ensure = present) {
if($ha_cluster_dc == $fqdn) {
if($resource1_role != "undef") {
if($resource1_role != "") {
$resource1 = "${resource1_name}:${resource1_role}"
} else {
$resource1 = $resource1_name
}

if($resource2_role != "undef") {
if($resource2_role != "") {
$resource2 = "${resource2_name}:${resource2_role}"
} else {
$resource2 = $resource2_name
Expand Down

0 comments on commit eb8e8c0

Please sign in to comment.