openstack: rename nova-image to openstack-image

This commit is contained in:
lassulus 2019-02-21 03:18:48 +01:00
parent 0cce7924f1
commit c54ce47d5d

View File

@ -1,8 +1,13 @@
{ modulesPath, ... }:
{
{ modulesPath, lib, ... }:
if lib.pathExists "${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix" then {
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/nova-image.nix"
];
formatAttr = "novaImage";
} else {
imports = [
"${toString modulesPath}/../maintainers/scripts/openstack/openstack-image.nix"
];
formatAttr = "openstackImage";
}