Skip to content

Commit

Permalink
Merge pull request #13 from netfoundry/release/1.2.1
Browse files Browse the repository at this point in the history
Release/1.2.1
  • Loading branch information
emoscardini authored Mar 20, 2023
2 parents 4aa7baa + 17328cf commit 1982379
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Changelog

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.2.1] - 2023-03-20
### Changed:

- Fixed bug in info file function

## [1.2.0] - 2023-02-23
### Changed:

- Changd process lookup to handle single binary deployments
- Clean up info file function

## [1.1.0] - 2023-01-27
### Added:

- CPU dumps


## [1.0.0] - 2023-01-09

- Initial Release
Binary file modified dist/support_bundle
Binary file not shown.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pylint
Pyaml
pyinstaller
requests
tqdm
Expand Down
12 changes: 5 additions & 7 deletions support_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def create_info_file(tmp_dir, email_address):
info_items = {"email_address": email_address}
info_items["network_version"] = "7"
node_type_map = {
"/opt/netfoundry/ziti/ziti-controller/ziti-controller": "NC",
"/opt/netfoundry/ziti/ziti-router/config.yml": "ER",
"/opt/netfoundry/ziti/ziti-controller": "NC",
"/opt/netfoundry/ziti/ziti-router": "ER",
}

logging.debug("Attempting to identify system...")

for file_path, node_type in node_type_map.items():
if os.path.exists(file_path):
if os.path.isdir(file_path):
info_items["node_type"] = node_type
logging.debug("Node Type: %s", node_type)
break
Expand Down Expand Up @@ -716,11 +716,9 @@ def main():
# main
if __name__ == '__main__':
try:
__version__ = '1.2.0'
__version__ = '1.2.1'
# change log
# 1.0.0 - initial release
# 1.1.0 - add cpu dump
# 1.2.0 - change process lookup; clean up info file function
# https://github.com/netfoundry/edge-router-support-bundle/blob/main/CHANGELOG.md

# argument parser
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 1982379

Please sign in to comment.