'remove a port from a service'

def delete_ports(self, inc_ports):

    if (not isinstance(inc_ports, list)):
        inc_ports = [inc_ports]
    ports = (self.get(Service.port_path) or [])
    if (not ports):
        return True
    removed = False
    for inc_port in inc_ports:
        port = self.find_ports(inc_port)
        if port:
            ports.remove(port)
            removed = True
    return removed
