Skip to content

Commit

Permalink
fixed issue with setting version for manual registration
Browse files Browse the repository at this point in the history
  • Loading branch information
emoscardini committed Oct 23, 2023
1 parent 365c0dd commit 0f429ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.2] - 2023-10-23

### Fixed

- Fixed issue with finding version when using manual registration


## [1.1.1] - 2023-10-16

### Changed
Expand Down
6 changes: 5 additions & 1 deletion router_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def create_parser():
:return: A Namespace containing arguments
"""
__version__ = '1.1.1'
__version__ = '1.1.2'
parser = argparse.ArgumentParser()

mgroup = parser.add_mutually_exclusive_group(required=True)
Expand Down Expand Up @@ -638,6 +638,10 @@ def process_manual_registration_arguments(args):
if args.linkListener:
router_info['edgeRouter']['linkListener'] = True

router_info['productMetadata']={}
ziti_version = ziti_router_auto_enroll.get_ziti_controller_version(jwt_info['iss'])
router_info['productMetadata']['zitiVersion'] = ziti_version

return router_info

def salt_stack_add(router_info):
Expand Down

0 comments on commit 0f429ad

Please sign in to comment.