# Path: syncano_cli/base/exceptions.py
# class BadCredentialsException(CLIBaseException):
#     default_message = u'Wrong login credentials provided.'
# 
# class InstanceNotFoundException(CLIBaseException):
#     default_message = u'Instance `{}` not found.'
# 
# Path: syncano_cli/config.py
# ACCOUNT_CONFIG = ConfigParser()
# 
# ACCOUNT_CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.syncano')


import six
import syncano
from syncano.exceptions import SyncanoException
from syncano_cli.base.exceptions import BadCredentialsException, InstanceNotFoundException
from syncano_cli.config import ACCOUNT_CONFIG, ACCOUNT_CONFIG_PATH
    from ConfigParser import NoOptionError, NoSectionError
    from configparser import NoOptionError, NoSectionError
# -*- coding: utf-8 -*-

if six.PY2:
elif six.PY3:
else:
    raise ImportError()


def get_instance_name(config, instance_name):

# Path: syncano_cli/base/exceptions.py
# class BadCredentialsException(CLIBaseException):
#     default_message = u'Wrong login credentials provided.'
# 
# class InstanceNotFoundException(CLIBaseException):
#     default_message = u'Instance `{}` not found.'
# 
# Path: syncano_cli/config.py
# ACCOUNT_CONFIG = ConfigParser()
# 
# ACCOUNT_CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.syncano')


# Path: syncano_cli/base/connection.py
import six
import syncano
from syncano.exceptions import SyncanoException
from syncano_cli.base.exceptions import BadCredentialsException, InstanceNotFoundException
from syncano_cli.config import ACCOUNT_CONFIG, ACCOUNT_CONFIG_PATH
    from ConfigParser import NoOptionError, NoSectionError
    from configparser import NoOptionError, NoSectionError

# -*- coding: utf-8 -*-

if six.PY2:
elif six.PY3:
else:
    raise ImportError()


def get_instance_name(config, instance_name):

    ACCOUNT_CONFIG.read(config)