Commit 2cd67067 authored by Anaël Beutot's avatar Anaël Beutot
Browse files

Fix vncport value is crap or not present

parent d8818121
Loading
Loading
Loading
Loading
+3 −0
Changes for cloudcontrol/node/hypervisor/domains/vm_tags.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -127,8 +127,11 @@ def vncport(dom):
        logger.exception('VNCPort')
        raise

    try:
        if 0 < int(port) < 65536:
            return port
    except (TypeError, ValueError):
        pass

    return