From 5bc0c351fb5b8e527719d51e8e3347581882da66 Mon Sep 17 00:00:00 2001 From: Simon Ott Date: Tue, 13 Aug 2024 17:04:49 +0000 Subject: [PATCH] cmc: logging output fix Signed-off-by: Simon Ott --- cmc/cmc.go | 2 +- example-setup/update-container-manifest-live | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmc/cmc.go b/cmc/cmc.go index b7a233c..bdf9363 100644 --- a/cmc/cmc.go +++ b/cmc/cmc.go @@ -113,7 +113,7 @@ func NewCmc(c *Config) (*Cmc, error) { for _, driver := range c.Drivers { d, ok := drivers[strings.ToLower(driver)] if !ok { - return nil, fmt.Errorf("driver %v not implemented", c.Drivers) + return nil, fmt.Errorf("driver %v not implemented", driver) } err = d.Init(driverConf) if err != nil { diff --git a/example-setup/update-container-manifest-live b/example-setup/update-container-manifest-live index b44310a..4c96a2f 100755 --- a/example-setup/update-container-manifest-live +++ b/example-setup/update-container-manifest-live @@ -114,15 +114,11 @@ fi # Restore the original runc config if [ "${exists}" = true ] ; then - echo "WRITING BACK ${original_json}" echo "${original_json}" | sudo tee "${runc_config}" else sudo rm "${runc_config}" fi -echo "RESTORED" -jq . "${runc_config}" - refvals=$(cat /tmp/container-refs) # if containers not set, set it to the single container