• James Bardin's avatar
    don't loop indefinitely in confirm method · 885e4cde
    James Bardin authored
    Only check for input twice in the meta.confirm method. This prevents an
    errant newline from aborting the run while allowing Terraform to exit if
    there is no input available. We don't just check for a tty, since we
    still rely on being able to pipe input in for testing.
    
    Remove the redundant confirmation loops in the migration code, and only
    use the confirm method.
    885e4cde