Merge pull request #1 from bbc/openstack-collections-fix

Make OpenStack collections qualify for NewStylePlanner
pull/814/head
Georgina Shippey 5 years ago committed by GitHub
commit e9aed460a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -301,6 +301,9 @@ class NewStylePlanner(ScriptPlanner):
@classmethod
def detect(cls, path, source):
if b'from ansible_collections.openstack.' in source:
cls.marker = b'from ansible_collections.openstack.'
LOG.debug('cls.marker: %r, source: %r', cls.marker, source)
return cls.marker in source
def _get_interpreter(self):

Loading…
Cancel
Save