Commit 64c83de1 authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent ccbf8139
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -158,9 +158,7 @@ def inventory(device_uuid: str):
        flash('Device({:s}) not found'.format(str(device_uuid)), 'danger')
        device_obj = Device()
    context_client.close()

    return render_template(
        'device/inventory.html', device=device_obj, dde=DeviceDriverEnum, dose=DeviceOperationalStatusEnum)
    return render_template('device/inventory.html', device=device_obj)

@device.get('<path:device_uuid>/delete')
def delete(device_uuid):
+10 −12
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@
<div class="row mb-3">
    <div class="col-sm-3">
        <ul id="myUL">
            <li><span class="caret"></span>>Components</span>
            <li><span class="caret"></span>Components</span>
                <ul class="nested">
                    {% for item in (device.components|sort(true, attribute='name')) %}
                    {% if item.parent |length < 1 or item.type=='CHASSIS' %} 
@@ -148,6 +148,4 @@
    {% endif %}
</div>


    
{% endblock %}