Planet RSS Feed for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
492 B

import ConfigParser
import logging
import os
LOG = logging.getLogger("openstack-planet")
cp = ConfigParser.ConfigParser()"planet.ini")
assert cp.get('Planet', 'output_dir') == '/srv/planet/openstack'
for i in cp.sections():
assert os.path.isfile(os.path.join('images', cp.get(i, 'face')))
except ConfigParser.NoOptionError:
except AssertionError:
raise IOError('Image not correct for %s' % i)