From 64090562664d1d619d34130be2553c47409f0013 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Thu, 23 Sep 2010 23:38:18 +0000 Subject: bcfg2-repo-validate: Remove non-required attributes (Reported by fearitself on IRC) Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6068 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-repo-validate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate index 5e22dcf75..1889c9892 100755 --- a/src/sbin/bcfg2-repo-validate +++ b/src/sbin/bcfg2-repo-validate @@ -87,10 +87,10 @@ if __name__ == '__main__': # verify attributes for configuration entries # (as defined in doc/server/configurationentries) # TODO: See if it is possible to do this in the schema instead - configuration_attrs = { + required_configuration_attrs = { 'device':['name', 'owner', 'group', 'dev_type'], 'directory':['name', 'owner', 'group', 'perms'], - 'file':['name', 'owner', 'group', 'perms', 'encoding', 'empty'], + 'file':['name', 'owner', 'group', 'perms'], 'hardlink':['name', 'to'], 'symlink':['name', 'to'], 'ignore':['name'], @@ -106,7 +106,7 @@ if __name__ == '__main__': pathtype = posixpath.get('type') pathset = set(posixpath.attrib.keys()) try: - required_attrs = set(configuration_attrs[pathtype] \ + required_attrs = set(required_configuration_attrs[pathtype] \ + ['type']) except KeyError: continue -- cgit v1.2.3-1-g7c22