Skip to content

Commit

Permalink
cmc: logging output fix
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ott <[email protected]>
  • Loading branch information
smo4201 committed Aug 13, 2024
1 parent fa967bd commit 342fa36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion cmc/cmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions example-setup/update-container-manifest-live
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 342fa36

Please sign in to comment.