Skip to content

Commit

Permalink
fixed issue with host_id; fixed issue with cert paths
Browse files Browse the repository at this point in the history
  • Loading branch information
emoscardini committed Dec 27, 2023
1 parent a6f2311 commit c7d7234
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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.4.1] - 2023-12-27
### Changed

- Fixed issue with defining host_id
- Fixed issue with certificate paths

## [1.4.0] - 2023-12-13
### Changed

Expand Down
Binary file modified dist/support_bundle
Binary file not shown.
21 changes: 11 additions & 10 deletions support_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,8 @@ def run_identify():
for file in minion_files:
if os.path.exists(file):
host_id = extract_minion_id(file)

if host_id:
identity_info["host_id"] = host_id
else:
identity_info["host_id"] = host_id
break
logging.debug("Minion file not found")

# identify controller name or IP
Expand Down Expand Up @@ -431,11 +429,14 @@ def run_identify():
logging.debug("Controller Config not found")

# identity Router id from certificate
router_certificate = "/opt/netfoundry/ziti/ziti-router/certs/client.cert.pem"
if os.path.exists(router_certificate):
ziti_router_id = extract_common_name(router_certificate)
identity_info['ziti_router_id'] = ziti_router_id
logging.debug("ZitiRouterId: %s", ziti_router_id)
certificate_files =["/opt/netfoundry/ziti/ziti-router/certs/client.cert.pem",
"/opt/netfoundry/ziti/ziti-router/certs/cert.pem"]

for certificate in certificate_files:
if os.path.exists(certificate):
ziti_router_id = extract_common_name(certificate)
identity_info['ziti_router_id'] = ziti_router_id
logging.debug("ZitiRouterId: %s", ziti_router_id)

return identity_info

Expand Down Expand Up @@ -722,7 +723,7 @@ def main():
# main
if __name__ == '__main__':
try:
__version__ = '1.4.0'
__version__ = '1.4.1'
# change log
# https://github.com/netfoundry/edge-router-support-bundle/blob/main/CHANGELOG.md

Expand Down

0 comments on commit c7d7234

Please sign in to comment.