Add imports for stdlib modules that are used.

This is cleanup that will aid us when we get ziploader implemented for 2.1
This commit is contained in:
Toshio Kuratomi 2015-11-02 12:02:26 -08:00
parent 107d025d8a
commit 1bc75374dc
8 changed files with 12 additions and 0 deletions

View file

@ -26,6 +26,10 @@
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import json
# Note: modules using this must have from ansible.module_utils.urls import *
# before this is imported
AXAPI_PORT_PROTOCOLS = {
'tcp': 2,
'udp': 3,

View file

@ -27,6 +27,7 @@
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import time
try:
from cs import CloudStack, CloudStackException, read_config

View file

@ -18,7 +18,9 @@
import os
import sys
import stat
import time
import array
import shlex
import errno
import fcntl
import fnmatch

View file

@ -27,6 +27,7 @@
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
import os
import pprint
from libcloud.compute.providers import get_driver

View file

@ -26,6 +26,7 @@
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import os
import hmac
import urlparse

View file

@ -28,6 +28,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import re
from uuid import UUID

View file

@ -32,6 +32,7 @@ import os
import tempfile
import shlex
import select
import subprocess
import json
# The distutils module is not shipped with SUNWPython on Solaris.

View file

@ -14,6 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
import os
try:
from pyvcloud.vcloudair import VCA
HAS_PYVCLOUD = True