hpe-storage / python-hpedockerplugin

HPE Native Docker Plugin
Apache License 2.0
36 stars 64 forks source link

fix for issue #679 #682

Closed nilangekarss closed 5 years ago

nilangekarss commented 5 years ago

Here, chmod should only be executed if fsMode is passed by the user. Hence adding check to confirm whether fsMode is passed by user and then try to change the mode bits. @imran-ansari @wdurairaj please review

nilangekarss commented 5 years ago

@imran-ansari

  1. -o fsOwner only, will change the ownership to particular user and group
  2. -o fsMode only, will throw an error requesting user to pass fsOwner
  3. -o fsOwner -o fsMode will change ownership and permissions if valid