mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Add missing iteritems definition (#21106)
Also moved most imports out of try-except block.
This commit is contained in:
parent
a3eab4fc48
commit
4f96ee5e27
1 changed files with 4 additions and 3 deletions
|
@ -17,11 +17,12 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# 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:
|
try:
|
||||||
import atexit
|
|
||||||
import time
|
|
||||||
import ssl
|
|
||||||
# requests is required for exception handling of the ConnectionError
|
# requests is required for exception handling of the ConnectionError
|
||||||
import requests
|
import requests
|
||||||
from pyVim import connect
|
from pyVim import connect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue