Skip to content

Commit

Permalink
Merge pull request #1774 from jrha/cleanup-postgresql
Browse files Browse the repository at this point in the history
ncm-postgresql: Cleanup pan templates
  • Loading branch information
wpoely86 authored Dec 9, 2024
2 parents 124f057 + bae6f95 commit 1ed5a11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ncm-postgresql/src/main/pan/components/postgresql/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ include 'quattor/types/component';

function postgresql_is_hba_db = {
# Check cardinality and type of argument.
if (ARGC != 1 || !is_string(ARGV[0]))
error(format("usage: %s(string)", FUNCTION));
if (ARGC != 1 || !is_string(ARGV[0])) error("usage: %s(string)", FUNCTION);

if (match(ARGV[0], "^(all|sameuser|samerole|replication)$")) {
true;
Expand All @@ -16,8 +15,7 @@ function postgresql_is_hba_db = {

function postgresql_is_hba_address = {
# Check cardinality and type of argument.
if (ARGC != 1 || !is_string(ARGV[0]))
error(format("usage: %s(string)", FUNCTION));
if (ARGC != 1 || !is_string(ARGV[0])) error("usage: %s(string)", FUNCTION);

if (match(ARGV[0], "^(samehost|samenet)$")) {
true;
Expand Down Expand Up @@ -362,7 +360,7 @@ type postgresql_component = {
};

if (exists(SELF["config"]) && (pg_port != port)) {
error(format("Legacy pg_port %s and config/main/port %s must be the same", pg_port, port));
error("Legacy pg_port %s and config/main/port %s must be the same", pg_port, port);
};

true;
Expand Down

0 comments on commit 1ed5a11

Please sign in to comment.