Skip to content

Commit b0face2

Browse files
MAINT test getting module version
1 parent 255b974 commit b0face2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plans/migrate.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
Optional[String] $upgrade_version = undef,
1616
Optional[Peadm::SingleTargetSpec] $replica_host = undef,
1717
) {
18+
# Read and parse metadata.json
19+
$metadata = parsejson(file('./.modules/peadm/metadata.json'))
20+
out::message("peadm module metadata: ${metadata}")
21+
# Get the version value
22+
$module_version = $metadata['version']
23+
out::message("peadm module version: ${module_version}")
24+
1825
# pre-migration checks
1926
out::message('This plan is a work in progress and it is not recommended to be used until it is fully implemented and supported')
2027
peadm::assert_supported_bolt_version()

0 commit comments

Comments
 (0)