Issue #2700
Updated by Ichimonji10 about 7 years ago
Let's say that you install crane (in my case, from the nightly RPM build) and create the following <code>/etc/crane.conf</code>: <pre><code>[general] data_dir: /var/lib/published/docker endpoint: localhost:5000 </code></pre> In this case, Crane will fail to start: <pre>[root@fedora-24-pulp-2-13 ~]# python2 python -c 'from crane.app import create_app; create_app().run(' File "<string>", line 1 from crane.app import create_app; create_app().run( ^ SyntaxError: unexpected EOF while parsing [root@fedora-24-pulp-2-13 ~]# python -c 'from crane.app import create_app; create_app().run()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/site-packages/crane/app.py", line 29, in create_app config.load(app) File "/usr/lib/python2.7/site-packages/crane/config.py", line 59, in load read_config(app, parser) File "/usr/lib/python2.7/site-packages/crane/config.py", line 81, in read_config app.config['DEBUG'] = parser.getboolean(SECTION_GENERAL, KEY_DEBUG) File "/usr/lib64/python2.7/ConfigParser.py", line 368, in getboolean v = self.get(section, option) File "/usr/lib64/python2.7/ConfigParser.py", line 618, in get raise NoOptionError(option, section) ConfigParser.NoOptionError: No option 'debug' in section: 'general' </pre> This isn't expected. The documentation states that <code>debug</code> defaults to "false", meaning that the <code>debug</code> option should be optional. This affects the nightly builds of Crane for Pulp 2.12 and 2.13.