aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/base/set_configs.py5
-rw-r--r--tests/test_set_config.py7
2 files changed, 7 insertions, 5 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py
index 229090817..e2005c5f7 100644
--- a/docker/base/set_configs.py
+++ b/docker/base/set_configs.py
@@ -121,8 +121,9 @@ class ConfigFile(object):
os.chown(dest, stat.st_uid, stat.st_gid)
def _set_properties_from_conf(self, path):
- handle_permissions({'owner': self.owner, 'path': path,
- 'perm': self.perm})
+ config = {'permissions':
+ [{'owner': self.owner, 'path': path, 'perm': self.perm}]}
+ handle_permissions(config)
def copy(self):
diff --git a/tests/test_set_config.py b/tests/test_set_config.py
index aff97b3bb..643b5ba54 100644
--- a/tests/test_set_config.py
+++ b/tests/test_set_config.py
@@ -143,9 +143,10 @@ class ConfigFileTest(base.BaseTestCase):
config_file = copy.deepcopy(FAKE_CONFIG_FILE)
config_file._set_properties_from_conf(config_file.dest)
- mock_handle_permissions.assert_called_with({'owner': 'user1',
- 'path': config_file.dest,
- 'perm': '0644'})
+ mock_handle_permissions.assert_called_with({'permissions':
+ [{'owner': 'user1',
+ 'path': config_file.dest,
+ 'perm': '0644'}]})
@mock.patch('glob.glob', return_value=[])
def test_copy_no_source_not_optional(self,