Skip to content

Commit

Permalink
Merge pull request #3807 from QiWang19/inspect_mergeDir
Browse files Browse the repository at this point in the history
removMergeDir from inspect result if not mounted
  • Loading branch information
openshift-merge-robot authored Aug 14, 2019
2 parents f5dcb80 + bc6e1f1 commit bf9e801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libpod/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func GetDriverData(store cstorage.Store, layerID string) (*Data, error) {
if err != nil {
return nil, err
}
if mountTimes, err := store.Mounted(layerID); mountTimes == 0 || err != nil {
delete(metaData, "MergedDir")
}

return &Data{
Name: name,
Data: metaData,
Expand Down

0 comments on commit bf9e801

Please sign in to comment.