Add missing iteritems definition (#21106)

Also moved most imports out of try-except block.
This commit is contained in:
Dag Wieers 2017-02-08 00:31:40 +01:00 committed by jctanner
parent a3eab4fc48
commit 4f96ee5e27

View file

@ -17,11 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from ansible.module_utils.six import iteritems
import atexit
import ssl
import time
try:
import atexit
import time
import ssl
# requests is required for exception handling of the ConnectionError
import requests
from pyVim import connect