Removed unnecessary import

This commit is contained in:
Dmitry Malinovsky 2013-12-02 16:18:57 +07:00
parent c12a04b75e
commit ead0cd39bf

View File

@ -548,7 +548,6 @@ def load_config(path, env_var, default_path=None):
if not os.path.isfile(path): if not os.path.isfile(path):
template = '{0}.template'.format(path) template = '{0}.template'.format(path)
if os.path.isfile(template): if os.path.isfile(template):
import salt.utils # TODO: Need to re-import, need to find out why
log.debug('Writing {0} based on {1}'.format(path, template)) log.debug('Writing {0} based on {1}'.format(path, template))
with salt.utils.fopen(path, 'w') as out: with salt.utils.fopen(path, 'w') as out:
with salt.utils.fopen(template, 'r') as ifile: with salt.utils.fopen(template, 'r') as ifile: