Skip to content

Commit

Permalink
Merge pull request #232 from oalbrigt/ocf-version
Browse files Browse the repository at this point in the history
Follow OCF standard for agent version and OCF version in metadata

See: https://github.com/ClusterLabs/OCF-spec/blob/main/ra/1.1/resource-agent-api.md#semantics
  • Loading branch information
ioguix authored Jun 13, 2024
2 parents d191e09 + c3e38db commit 9653351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script/pgsqlms
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use OCF_ReturnCodes;
use OCF_Directories;
use OCF_Functions;

our $VERSION = 'v2.3.0';
our $VERSION = '2.3.0';
our $PROGRAM = 'pgsqlms';

# OCF environment
Expand Down Expand Up @@ -1099,8 +1099,8 @@ is not in the data directory (PGDATA), eg.:
sub ocf_meta_data {
print qq{<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="pgsqlms">
<version>$VERSION</version>
<resource-agent name="pgsqlms" version="$VERSION">
<version>1.0</version>
<longdesc lang="en">
Resource script for PostgreSQL in replication. It manages PostgreSQL
Expand Down Expand Up @@ -1317,7 +1317,7 @@ sub pgsql_validate_all {
ocf_version_cmp( $ENV{"OCF_RESKEY_crm_feature_set"}, '3.0.9' ) == 2
) {
ocf_exit_reason(
'PAF %s is compatible with Pacemaker 1.1.13 and greater',
'PAF v%s is compatible with Pacemaker 1.1.13 and greater',
$VERSION
);
return $OCF_ERR_INSTALLED;
Expand Down

0 comments on commit 9653351

Please sign in to comment.