Skip to content

Commit

Permalink
add do not upload argument
Browse files Browse the repository at this point in the history
  • Loading branch information
emoscardini committed Mar 20, 2024
1 parent 2009559 commit eb42692
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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.2] - 2024-03-20
### Added

- Added new flag do not upload flag `-l`

## [1.4.1] - 2023-12-27
### Changed

Expand Down
Binary file modified dist/support_bundle
Binary file not shown.
16 changes: 11 additions & 5 deletions support_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,12 @@ def main():
system_files + ziti_files + info_file_path + ziti_dump_files)

# prompt for upload
if not args.upload:
upload = query_yes_no("Would you like to upload this?")
else:
if args.upload:
upload = True
elif args.no_upload:
upload = False
else:
upload = query_yes_no("Would you like to upload this?")

# upload files to s3 or just place vile
if upload:
Expand All @@ -723,7 +725,7 @@ def main():
# main
if __name__ == '__main__':
try:
__version__ = '1.4.1'
__version__ = '1.4.2'
# change log
# https://github.com/netfoundry/edge-router-support-bundle/blob/main/CHANGELOG.md

Expand All @@ -737,9 +739,13 @@ def main():
parser.add_argument('-n','--dump_count',
help='number of times to perform dumps',
default=1, type=int)
parser.add_argument('-u', '--upload',
group = parser.add_mutually_exclusive_group()
group.add_argument('-u', '--upload',
action='store_true',
help='auto upload')
group.add_argument('-l', '--no_upload',
action='store_true',
help='do not upload')
parser.add_argument('-d', '--debug',
action='store_true',
help='enable debug log in log file output')
Expand Down

0 comments on commit eb42692

Please sign in to comment.