Skip to content

Commit ec78ffe

Browse files
authored
Merge pull request #580 from 0xdabbad00/record_version_in_report
Record version in report
2 parents 5b1d14d + c77b6bb commit ec78ffe

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cloudmapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import pkgutil
3131
import importlib
3232

33-
__version__ = "2.7.1"
33+
__version__ = "2.7.2"
3434

3535

3636
def show_help(commands):

commands/report.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from shared.public import get_public_nodes
1717
from shared.audit import audit, load_audit_config, finding_is_filtered
1818

19+
from cloudmapper import __version__
20+
1921
__description__ = "Create report"
2022

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

82+
t["version"] = __version__
83+
8084
# Get account names and id's
8185
t["accounts"] = []
8286
for account in accounts:

templates/report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
<div>
3434
<ul class="nav navbar-nav navbar-right">
35-
<li><h1>CloudMapper Report</h1><i class="muted">Report developed by <a href="https://summitroute.com/">Summit Route</a></i></li>
35+
<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>
3636
</ul>
3737
</div>
3838
</nav>

0 commit comments

Comments
 (0)