Restore python3 fixups

This commit is contained in:
Toshio Kuratomi 2015-04-27 08:46:26 -07:00
parent 8007829228
commit ed2e6fc8fa
8 changed files with 19 additions and 5 deletions

View file

@ -15,6 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import os
import base64
@ -141,7 +144,7 @@ class Connection(object):
# shutdown, so we'll reconnect.
wrong_user = True
except AnsibleError, e:
except AnsibleError as e:
if allow_ssh:
if "WRONG_USER" in e:
vvv("Switching users, waiting for the daemon on %s to shutdown completely..." % self.host)