Skip to content

Commit

Permalink
Move imports out of functions to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
rallytime committed Apr 6, 2015
1 parent 53ee793 commit c2285c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions salt/cloud/clouds/vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
password: verybadpass
url: vcenter03.domain.com
'''
from __future__ import absolute_import

# Import python libs
from __future__ import absolute_import
from random import randint
import pprint
import logging
import time
Expand Down Expand Up @@ -236,7 +237,6 @@ def _edit_existing_hard_disk_helper(disk, size_kb):


def _add_new_hard_disk_helper(disk_label, size_gb, unit_number):
from random import randint
random_key = randint(-2099, -2000)

size_kb = long(size_gb) * 1024 * 1024
Expand Down Expand Up @@ -274,7 +274,6 @@ def _edit_existing_network_adapter_helper(network_adapter, new_network_name):


def _add_new_network_adapter_helper(network_adapter_label, network_name, adapter_type):
from random import randint
random_key = randint(-4099, -4000)

adapter_type.strip().lower()
Expand Down

0 comments on commit c2285c6

Please sign in to comment.