rename metadata file to not conflict

This commit is contained in:
Neil Hanlon 2022-11-19 17:09:00 -05:00
parent 8b099f255c
commit 57ba3ca98c
Signed by untrusted user: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ class ImageBuild:
self.package_args = self._package_args()
self.common_args = self._common_args()
self.metadata = pathlib.Path(self.outdir, "metadata.json")
self.metadata = pathlib.Path(self.outdir, ".imagefactory-metadata.json")
self.kickstart_path = pathlib.Path(f"{KICKSTART_PATH}/Rocky-{self.architecture.major}-{self.type_variant}.ks")
@ -443,7 +443,7 @@ class ImageBuild:
return template
def save(self):
with open(pathlib.Path(self.outdir, "metadata.json"), "w") as f:
with open(self.metadata, "w") as f:
try:
o = { name: getattr(self, name) for name in ["base_uuid", "target_uuid"] }
log.debug(o)

View File

@ -53,7 +53,7 @@ vmci0.id = "-1024033366"
vmci0.present = "TRUE"
vmotion.checkpointFBSize = "134217728"
displayName = "{{ outname }}"
nvram = "{{ outname }}.nvram"
scsi0:0.fileName = "{{ outname }}.vmdk"
extendedConfigFile = "{{ outname }}.vmxf"
displayName = "{{ name }}"
nvram = "{{ name }}.nvram"
scsi0:0.fileName = "{{ name }}.vmdk"
extendedConfigFile = "{{ name }}.vmxf"