Skip to content

Commit

Permalink
Merge pull request #580 from 0xdabbad00/record_version_in_report
Browse files Browse the repository at this point in the history
Record version in report
  • Loading branch information
0xdabbad00 committed Oct 7, 2019
2 parents 5b1d14d + c77b6bb commit ec78ffe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import pkgutil
import importlib

__version__ = "2.7.1"
__version__ = "2.7.2"


def show_help(commands):
Expand Down
4 changes: 4 additions & 0 deletions commands/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from shared.public import get_public_nodes
from shared.audit import audit, load_audit_config, finding_is_filtered

from cloudmapper import __version__

__description__ = "Create report"

REPORT_OUTPUT_FILE = os.path.join("web", "account-data", "report.html")
Expand Down Expand Up @@ -77,6 +79,8 @@ def report(accounts, config, args):
# Data to be passed to the template
t = {}

t["version"] = __version__

# Get account names and id's
t["accounts"] = []
for account in accounts:
Expand Down
2 changes: 1 addition & 1 deletion templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
<div>
<ul class="nav navbar-nav navbar-right">
<li><h1>CloudMapper Report</h1><i class="muted">Report developed by <a href="https://summitroute.com/">Summit Route</a></i></li>
<li><h1>CloudMapper Report</h1><i class="muted">CloudMapper v{{t.version}}<p>Report developed by <a href="https://summitroute.com/">Summit Route</a></i></li>
</ul>
</div>
</nav>
Expand Down

0 comments on commit ec78ffe

Please sign in to comment.