Compare commits
No commits in common. "46f3493be9cf677f9c990306852940bd6c026667" and "0d3e51590979d6d663cfec5e8e914ba4567dce75" have entirely different histories.
46f3493be9
...
0d3e515909
@ -5,4 +5,3 @@ libvirt-python>=1.3.1
|
|||||||
ovh==0.4.7
|
ovh==0.4.7
|
||||||
termcolor==1.1.0
|
termcolor==1.1.0
|
||||||
terminaltables==3.1.0
|
terminaltables==3.1.0
|
||||||
coloredlogs==7.3
|
|
||||||
|
14
vm.py
14
vm.py
@ -16,17 +16,7 @@ __version__ = '0.1'
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.getLogger('ovh.vendor').setLevel(logging.WARNING)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
@ -252,7 +242,7 @@ IP: {0.ip}
|
|||||||
Username: {0.user}
|
Username: {0.user}
|
||||||
Password: {0.password}'''.format(instance))
|
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):
|
def cmd_iplist(args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user