Fixes #10111 - Use a dummy primary interface for unmanaged hosts
Unmanaged hosts require a host interface due to delegation of networking attributes, and some others like 'name'. Since unmanaged hosts do not necessarily have an interface associated (unless created through puppet facts importer), we provide a dummy interface to prevent errors.
Ideally this should go away as soon as unmanaged hosts are a different class or Host::Base, moving validations and other particularities to Host::Managed.
(cherry picked from commit a5dc3e23d6c2065149ea93b8687b3f5c32eb54b4)
Related issues
Bug #10111: "primary_interface is nil" error when editing unmanaged host
Fixes #10111 - Use a dummy primary interface for unmanaged hosts
Unmanaged hosts require a host interface due to delegation of networking
attributes, and some others like 'name'. Since unmanaged hosts do not
necessarily have an interface associated (unless created through puppet
facts importer), we provide a dummy interface to prevent errors.
Ideally this should go away as soon as unmanaged hosts are a different
class or Host::Base, moving validations and other particularities
to Host::Managed.
(cherry picked from commit a5dc3e23d6c2065149ea93b8687b3f5c32eb54b4)