Make third-party imports clearer in launch/.

This is a minor step towards PEP-8 as well, but mainly makes it easier
to document what third party modules are needed.

Change-Id: Id901ef437fcdeb11c8dd555e8db7c13daa86c4b2
This commit is contained in:
Robert Collins 2013-08-30 16:08:41 +12:00
parent 5ae5e6cc5b
commit 49b0b0c78d
3 changed files with 11 additions and 8 deletions

View File

@ -26,10 +26,11 @@ import subprocess
import traceback
import socket
import argparse
import utils
import dns
import shutil
import dns
import utils
NOVA_USERNAME=os.environ['OS_USERNAME']
NOVA_PASSWORD=os.environ['OS_PASSWORD']
NOVA_URL=os.environ['OS_AUTH_URL']

View File

@ -18,9 +18,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import paramiko
import sys
import paramiko
class SSHClient(object):
def __init__(self, ip, username, password=None, pkey=None):
client = paramiko.SSHClient()

View File

@ -18,20 +18,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import time
import os
import traceback
import socket
import novaclient
from novaclient.v1_1 import client as Client11
try:
from v1_0 import client as Client10
except:
pass
import time
import os
import traceback
import paramiko
import socket
import salt.crypt
from sshclient import SSHClient
from sshclient import SSHClient
def iterate_timeout(max_seconds, purpose):
start = time.time()