Skip to content

Commit

Permalink
fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Mar 15, 2024
1 parent b47220f commit ad49e9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion abst/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"CLI Command making OCI Bastion and kubernetes usage simple and fast"
)

__version__ = "2.3.51"
__version__ = "2.3.52"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
6 changes: 4 additions & 2 deletions abst/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ def main():
threading.stack_size(134217728)

_config = Bastion.load_config()
current_version = semantic_version.Version(_config["changelog-version"])
change_log_config = _config.get("changelog-version", "0.0.1")

current_version = semantic_version.Version(change_log_config)
package_version = semantic_version.Version(__version__)
if (_config.get("changelog-version", None) is None or current_version < package_version) and __change_log__:
if (change_log_config is None or current_version < package_version) and __change_log__:
_config["changelog-version"] = __version__
Bastion.write_creds_json(_config, default_conf_path)
print_changelog(_config)
Expand Down

0 comments on commit ad49e9d

Please sign in to comment.