# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, absolute_import
import ssl
import os


class Config:
    """ vsphere env configuratioin"""
    VC_PORT = 443
    # vsphere login ssl setting
    CONTEXT = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
    CONTEXT.verify_mode = ssl.CERT_NONE

    def __init__(self):
        pass


class ProConfig(Config):
    """ Production configuration"""
    DEBUG = False
    VC_USERNAME = os.environ.get('VC_USERNAME', '')
    VC_PASSWORD = os.environ.get('VC_PASSWORD', '')
    VC_IP = os.environ.get('VC_IP', '1.1.1.1')


class DevConfig(Config):
    """ develogpment configuration"""
    DEBUG = True
    VC_USERNAME = '<EMAIL>'
    VC_PASSWORD = '<PASSWORD>'
    VC_IP = os.environ.get('VC_IP', '172.16.0.4')


ENV_CONFIG = {
    'development': DevConfig,
    'production': ProConfig,
    'default': DevConfig
}

# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, absolute_import
import ssl
import os


class Config:
    """ vsphere env configuratioin"""
    VC_PORT = 443
    # vsphere login ssl setting
    CONTEXT = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
    CONTEXT.verify_mode = ssl.CERT_NONE

    def __init__(self):
        pass


class ProConfig(Config):
    """ Production configuration"""
    DEBUG = False
    VC_USERNAME = os.environ.get('VC_USERNAME', '')
    VC_PASSWORD = os.environ.get('VC_PASSWORD', '')
    VC_IP = os.environ.get('VC_IP', '1.1.1.1')


class DevConfig(Config):
    """ develogpment configuration"""
    DEBUG = True
    VC_USERNAME = '<EMAIL>'
    VC_PASSWORD = '<PASSWORD>'
    VC_IP = os.environ.get('VC_IP', '172.16.0.4')


ENV_CONFIG = {
    'development': DevConfig,
    'production': ProConfig,
    'default': DevConfig
}

# -*- coding: utf-8 -*- vsphere env configuratioin # vsphere login ssl setting Production configuration develogpment configuration