Browse Source

Append requirement only if already not present

feature/python-types
Darko Poljak 3 years ago
parent
commit
2505023387
  1. 4
      cdist/emulator.py

4
cdist/emulator.py vendored

@ -319,7 +319,9 @@ class Emulator(object):
lastcreatedtype)
else:
if 'require' in self.env:
self.env['require'] += " " + lastcreatedtype
appendix = " " + lastcreatedtype
if appendix not in self.env['require']:
self.env['require'] += appendix
else:
self.env['require'] = lastcreatedtype
self.log.debug(("Injecting require for "

Loading…
Cancel
Save