Revision 9cec0c17 snf-cyclades-app/synnefo/api/servers.py

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

  
220 220

  
221 221
def get_server_fqdn(vm, vm_nics):
222
    public_ip = get_server_public_ip(vm_nics)
223
    if public_ip is None:
224
        return ""
225

  
226 222
    fqdn_setting = settings.CYCLADES_SERVERS_FQDN
227 223
    if fqdn_setting is None:
228
        return public_ip.address
224
        return None
229 225
    elif isinstance(fqdn_setting, basestring):
230 226
        return fqdn_setting % {"id": vm.id}
231 227
    else:

Also available in: Unified diff