Skip to content

Commit

Permalink
Fix static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 1, 2023
1 parent 66545e2 commit 7969394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions python/web/src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -513,16 +513,18 @@
{{ _("The images directory is currently empty.") }}
</div>
{% endif %}
<p><small>{{ _("%(disk_space)s MiB disk space remaining for images", disk_space=env["free_disk_space"]) }}</small></p>
</section>
<p>
<small>{{ _("%(disk_space)s MiB disk space remaining for images", disk_space=env["free_disk_space"]) }}</small>
</p>

{% else %}

<div class="notice">
{{ _("Please create the PiSCSI images dir to work with disk images:")}} {{ env["image_dir"] }}
{{ _("Please create the PiSCSI images dir to work with disk images:")}} {{ env["image_dir"] }}
</div>

{% endif %}
</section>

<hr/>

Expand Down
2 changes: 0 additions & 2 deletions python/web/src/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ def drive_list():
"""
Sets up the data structures and kicks off the rendering of the drive list page
"""
server_info = piscsi_cmd.get_server_info()

return response(
template="drives.html",
page_title=_("PiSCSI Create Drive"),
Expand Down

0 comments on commit 7969394

Please sign in to comment.