renumber=False assign_new_numbers = raw_input('Re-number copied tickets (if destination is not empty)? [y/N] ') if assign_new_numbers == "y": renumber=True print "************************************************************" print "* About to start ticket migration *" print "* *" print "* if you'd like to delete instead, skip this step. *" print "* *" print "* type 'copy' to copy *" print "************************************************************" copy = raw_input("Okay to start copy process? [copy/N] ") spaces=api.get_spaces() sp1 = sp2 = None for space in spaces: if space.name == space1: sp1 = space if space.name == space2: sp2 = space if not sp1 or not sp2: logger.debug('[Application] Could not find spaces, exiting.') sys.exit() if copy == 'copy': logger.debug('[Application] Starting Copy Process') nmap = migrate_tickets(sp1, sp2, ticket_numbers=ticketlist, auth=auth, renumber=renumber) with open('ticket_map.csv', 'wb') as csvfile: