diff --git a/ProjectPlugins/CodexPlugin/CodexPlugin.cs b/ProjectPlugins/CodexPlugin/CodexPlugin.cs index 205b0d2..3e40a99 100644 --- a/ProjectPlugins/CodexPlugin/CodexPlugin.cs +++ b/ProjectPlugins/CodexPlugin/CodexPlugin.cs @@ -19,12 +19,13 @@ namespace CodexPlugin public void Announce() { - tools.GetLog().Log($"Loaded with Codex ID: '{codexStarter.GetCodexId()}'"); + tools.GetLog().Log($"Loaded with Codex ID: '{codexStarter.GetCodexId()}' - Revision: {codexStarter.GetCodexRevision()}"); } public void AddMetadata(IAddMetadata metadata) { metadata.Add("codexid", codexStarter.GetCodexId()); + metadata.Add("codexrevision", codexStarter.GetCodexRevision()); } public void Decommission() diff --git a/ProjectPlugins/CodexPlugin/CodexStarter.cs b/ProjectPlugins/CodexPlugin/CodexStarter.cs index ae217c7..af815a8 100644 --- a/ProjectPlugins/CodexPlugin/CodexStarter.cs +++ b/ProjectPlugins/CodexPlugin/CodexStarter.cs @@ -66,6 +66,12 @@ namespace CodexPlugin return recipe.Image; } + public string GetCodexRevision() + { + if (versionResponse != null) return versionResponse.revision; + return "unknown"; + } + private StartupConfig CreateStartupConfig(CodexSetup codexSetup) { var startupConfig = new StartupConfig();