← Back to team overview

canonical-hw-cert team mailing list archive

[Merge] ~pwlars/testflinger-agent/+git/testflinger-agent-charm:fix-device-agent-config into ~canonical-hw-cert/testflinger-agent/+git/testflinger-agent-charm:main

 

Paul Larson has proposed merging ~pwlars/testflinger-agent/+git/testflinger-agent-charm:fix-device-agent-config into ~canonical-hw-cert/testflinger-agent/+git/testflinger-agent-charm:main.

Requested reviews:
  Paul Larson (pwlars)

For more details, see:
https://code.launchpad.net/~pwlars/testflinger-agent/+git/testflinger-agent-charm/+merge/428132

fix data written to the default.yaml in the device-agent config. This has already been tested on the new lab3 deployment
-- 
Your team Canonical Hardware Certification is subscribed to branch ~canonical-hw-cert/testflinger-agent/+git/testflinger-agent-charm:main.
diff --git a/src/charm.py b/src/charm.py
index b7b338c..d3bfde8 100755
--- a/src/charm.py
+++ b/src/charm.py
@@ -185,7 +185,7 @@ class TestflingerAgentCharm(CharmBase):
         device_config_path = (
             f"{self._stored.agent_path}/" "snappy-device-agents/default.yaml"
         )
-        device_config = self._read_resource("testflinger_agent_configfile")
+        device_config = self._read_resource("device_configfile")
         self._write_file(device_config_path, device_config)
 
     def _render_systemd_unit(self):

References