minimal beaufity

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-02-13 08:44:09 +01:00
parent dcd3bcee32
commit eadb62e67a
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,6 @@
- cleanup object_id handling
- have a look at singletons
- double check verification
- cleanup emulator to create object
- adjust tests
--------------------------------------------------------------------------------

View file

@ -151,9 +151,9 @@ class Emulator(object):
self.log.debug("reqs = " + requirements)
for requirement in requirements.split(" "):
# Ignore empty fields - probably the only field anyway
if len(requirement) == 0:
continue
if len(requirement) == 0: continue
# Raises an error, if object cannot be created
self.cdist_object.object_from_name(requirement)
self.log.debug("Recording requirement: " + requirement)
self.cdist_object.requirements.append(requirement)