From cb15f8407041e81d34a2f0ff45e330a57f56aba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=83=D1=81=D1=8C=D0=BA=D0=BE=D0=B2=20=D0=94=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB?= Date: Tue, 20 Sep 2016 16:33:20 +0300 Subject: [PATCH] try inject default values to from_config_file --- chef/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chef/api.py b/chef/api.py index f459b26..fa0486f 100644 --- a/chef/api.py +++ b/chef/api.py @@ -74,7 +74,7 @@ def __init__(self, url, key, client, version='0.10.8', headers={}, ssl_verify=Tr self.set_default() @classmethod - def from_config_file(cls, path): + def from_config_file(cls, path, url=None, key_path=None, client_name=None): """Load Chef API paraters from a config file. Returns None if the config can't be used. """ @@ -83,7 +83,6 @@ def from_config_file(cls, path): # Can't even read the config file log.debug('Unable to read config file "%s"', path) return - url = key_path = client_name = None ssl_verify = True for line in open(path): if not line.strip() or line.startswith('#'):