src/droute53.py
def procHost(args, newIP):
    """
    Process host and update route53 records.  Will exit if no
    appropriate route53 zone could be found.

    @param args: ArgParser args

    @return: None
    """
    match = None
    r53Conn = boto.connect_route53()
    (zone, match) = getZone(r53Conn, args.host)
    if zone is None:
        print('No appropriate route53 zone could be found for {}'.format(args.host))
        sys.exit(1)
    # should have a zone and IP at this point
    if match:
        print('Updating to record:  A {} {}'.format(args.host, newIP))
        zone.update_a(args.host, newIP)
    else:
        print('Adding record:  A {} {}'.format(args.host, newIP))
        zone.add_a(args.host, newIP)

    Process host and update route53 records.  Will exit if no
    appropriate route53 zone could be found.

    @param args: ArgParser args

    @return: None
    
Process host and update route53 records.  Will exit if no
appropriate route53 zone could be found.
Process host and update route53 records . Will exit if no appropriate route53 zone could be found .
def procHost(args, newIP):
    match = None
    r53Conn = boto.connect_route53()
    (zone, match) = getZone(r53Conn, args.host)
    if zone is None:
        print('No appropriate route53 zone could be found for {}'.format(args.host))
        sys.exit(1)
    if match:
        print('Updating to record:  A {} {}'.format(args.host, newIP))
        zone.update_a(args.host, newIP)
    else:
        print('Adding record:  A {} {}'.format(args.host, newIP))
        zone.add_a(args.host, newIP)
def procHost ( args , newIP ) : match = None r53Conn = boto . connect_route53 ( ) ( zone , match ) = getZone ( r53Conn , args . host ) if zone is None : print ( 'No appropriate route53 zone could be found for {}' . format ( args . host ) ) sys . exit ( 1 ) if match : print ( 'Updating to record:  A {} {}' . format ( args . host , newIP ) ) zone . update_a ( args . host , newIP ) else : print ( 'Adding record:  A {} {}' . format ( args . host , newIP ) ) zone . add_a ( args . host , newIP )
Process host and update route53 records.
Process host and update route53 records .
"""
    Process host and update route53 records.  Will exit if no
    appropriate route53 zone could be found.

    @param args: ArgParser args

    @return: None
    """ # should have a zone and IP at this point
None
args
None
newIP