Skip to content

Commit

Permalink
feat(util): remove non-existing source directory log
Browse files Browse the repository at this point in the history
ref: 3786

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
(cherry picked from commit ca83dfe)
  • Loading branch information
c3y1huang authored and David Ko committed Aug 21, 2023
1 parent 12029f7 commit 3dd7ca3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ func CopyHostDirectoryContent(src, dest string) (err error) {

// There can be no src directory, hence returning nil is fine.
if _, err := nsExec.Execute("bash", []string{"-c", fmt.Sprintf("ls %s", filepath.Join(srcDir, "*"))}); err != nil {
logrus.Infof("cannot list the content of the src directory %v for the copy, will do nothing: %v", srcDir, err)
return nil
}
// Check if the dest directory exists.
Expand Down

0 comments on commit 3dd7ca3

Please sign in to comment.