]> Frank Brehm's Git Trees - pixelpark/puppet-tools.git/commitdiff
Minor changes
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 15 Feb 2023 16:08:49 +0000 (17:08 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 15 Feb 2023 16:08:49 +0000 (17:08 +0100)
lib/dpx_puppettools/module_metadata.py
lib/dpx_puppettools/pfile_moduleinfo.py

index 3219c4112cdf7226c912e2c9e65c0ae40903e2fe..7cf6c5c92a34ac154dc5de2243585a56ec323352 100644 (file)
@@ -383,7 +383,7 @@ class ModuleMetadata(FbBaseObject):
             raise MetadataFileError(msg)
 
         if not os.access(str(file_path), os.R_OK):
-            msg = _("Metadata file {!r} is readable.").format(str(file_path))
+            msg = _("Metadata file {!r} not is readable.").format(str(file_path))
             raise MetadataFileError(msg)
 
         LOG.debug(_("Reading {!r} ...").format(str(file_path)))
index 03ec890e8b5e9f55ccd41eb8266546e6bf7059a6..c03d0294e1d505360c57e326af3d227018150313 100644 (file)
@@ -527,9 +527,9 @@ class PuppetfileModuleInfo(BaseModuleInfo):
                     module_info.repo_type = 'local'
                 else:
                     msg = _(
-                        "PuppetfileModuleInfo for {m!r} has tag :local, but this not set to {t!r},"
+                        "{c} for {m!r} has tag :local, but this not set to {t!r},"
                         " but {v!r} instead.").format(
-                        m=module_info.full_name, t='true', v=val_local)
+                        c='PuppetfileModuleInfo', m=module_info.full_name, t='true', v=val_local)
                     LOG.warn(msg)
 
             if 'source' in definitions: