walkamongus / puppet-harbor

Puppet Harbor module
https://forge.puppet.com/walkamongus/harbor
4 stars 7 forks source link

Avoid calling map() on nil in harbor_project's provider #27

Closed entasisj closed 4 years ago

entasisj commented 4 years ago

Resolved issue in self.instances() when calling map() on nil object which is returned by api_instance.projects_get() if there are no registries. In general split much code into small methods in order to allow reuse and remove duplicated code, and improve readability and understanding.

Additionally:

Note that this branch bases on branch of pull request #26.