Fix static analysis issues

This commit is contained in:
Daniel Markstedt 2023-12-01 15:10:19 +09:00
parent 66545e2643
commit 79693949da
2 changed files with 5 additions and 5 deletions

View File

@ -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/>

View File

@ -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"),