Revision d3e3ad5d

b/snf-cyclades-app/synnefo/api/servers.py
143 143

  
144 144
        vm_nics = vm.nics.filter(state="ACTIVE").order_by("index")
145 145
        attachments = map(nic_to_dict, vm_nics)
146
        if attachments:
147
            d['attachments'] = {'values': attachments}
146
        d['attachments'] = {'values': attachments}
148 147

  
149 148
        # include the latest vm diagnostic, if set
150 149
        diagnostic = vm.get_last_diagnostic()

Also available in: Unified diff