mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add missing iteritems definition (#21106)
Also moved most imports out of try-except block.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user