Compare commits

..

No commits in common. "46f3493be9cf677f9c990306852940bd6c026667" and "0d3e51590979d6d663cfec5e8e914ba4567dce75" have entirely different histories.

2 changed files with 2 additions and 13 deletions

View File

@ -5,4 +5,3 @@ libvirt-python>=1.3.1
ovh==0.4.7
termcolor==1.1.0
terminaltables==3.1.0
coloredlogs==7.3

14
vm.py
View File

@ -16,17 +16,7 @@ __version__ = '0.1'
import logging
logging.getLogger('ovh.vendor').setLevel(logging.WARNING)
logformat = '%(asctime)s %(name)s %(levelname)-7s %(message)s'
logdatefmt = '%Y-%m-%d %H:%M:%S'
loglevel = logging.INFO
try:
import coloredlogs
coloredlogs.install(level=loglevel, fmt=logformat, datefmt=logdatefmt)
except:
logging.basicConfig(level=loglevel, format=logformat, datefmt=logdatefmt)
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
from docopt import docopt
@ -252,7 +242,7 @@ IP: {0.ip}
Username: {0.user}
Password: {0.password}'''.format(instance))
subprocess.call(['ping', '-n', '-c', '1', '-w', '240', instance.ip])
subprocess.call(['ping', '-c', '1', '-W', '240', instance.ip])
def cmd_iplist(args):