management.management.commands.managestartup

Management command to check and update the Trustpoint database version.

Classes

Command

A Django management command to check and update the Trustpoint version.

Module Contents

class management.management.commands.managestartup.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

A Django management command to check and update the Trustpoint version.

help = 'Updates app version'[source]
handle(**_options)[source]

Entrypoint for the command.

Parameters:

_options (dict[str, str])

Return type:

None

manage_startup()[source]

Checks current state of trustpoint and acts accordingly.

Return type:

None

_parse_versions(db_version_str, current_version_str)[source]

Parse the version strings into Version objects.

Parameters:
  • db_version_str (str)

  • current_version_str (str)

Return type:

tuple[packaging.version.Version, packaging.version.Version]