rename metadata file to not conflict
This commit is contained in:
parent
8b099f255c
commit
57ba3ca98c
@ -94,7 +94,7 @@ class ImageBuild:
|
|||||||
self.package_args = self._package_args()
|
self.package_args = self._package_args()
|
||||||
self.common_args = self._common_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")
|
self.kickstart_path = pathlib.Path(f"{KICKSTART_PATH}/Rocky-{self.architecture.major}-{self.type_variant}.ks")
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ class ImageBuild:
|
|||||||
return template
|
return template
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
with open(pathlib.Path(self.outdir, "metadata.json"), "w") as f:
|
with open(self.metadata, "w") as f:
|
||||||
try:
|
try:
|
||||||
o = { name: getattr(self, name) for name in ["base_uuid", "target_uuid"] }
|
o = { name: getattr(self, name) for name in ["base_uuid", "target_uuid"] }
|
||||||
log.debug(o)
|
log.debug(o)
|
||||||
|
@ -53,7 +53,7 @@ vmci0.id = "-1024033366"
|
|||||||
vmci0.present = "TRUE"
|
vmci0.present = "TRUE"
|
||||||
vmotion.checkpointFBSize = "134217728"
|
vmotion.checkpointFBSize = "134217728"
|
||||||
|
|
||||||
displayName = "{{ outname }}"
|
displayName = "{{ name }}"
|
||||||
nvram = "{{ outname }}.nvram"
|
nvram = "{{ name }}.nvram"
|
||||||
scsi0:0.fileName = "{{ outname }}.vmdk"
|
scsi0:0.fileName = "{{ name }}.vmdk"
|
||||||
extendedConfigFile = "{{ outname }}.vmxf"
|
extendedConfigFile = "{{ name }}.vmxf"
|
||||||
|
Loading…
Reference in New Issue
Block a user