diff options
author | Jan Synacek <jsynacek@redhat.com> | 2013-09-16 10:32:17 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2013-09-16 10:32:17 +0200 |
commit | 8c134afdc924980a6d6af9f8f93fe6e51c16031a (patch) | |
tree | f165cc026f18557832c524d1cb264bf4eb8ccb39 /commands/logicalfile/lmi | |
parent | c92aae4b60e0816e4cb767813b4b6299a64b81d8 (diff) | |
download | openlmi-scripts-8c134afdc924980a6d6af9f8f93fe6e51c16031a.tar.gz openlmi-scripts-8c134afdc924980a6d6af9f8f93fe6e51c16031a.tar.xz openlmi-scripts-8c134afdc924980a6d6af9f8f93fe6e51c16031a.zip |
logicalfile: improve output
Diffstat (limited to 'commands/logicalfile/lmi')
-rw-r--r-- | commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py b/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py index 1a6d327..849d9f6 100644 --- a/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py +++ b/commands/logicalfile/lmi/scripts/logicalfile/logicalfile.py @@ -135,9 +135,9 @@ def lf_list(ns, directory, depth=None): for (f, lvl) in walk_cim_directory(d, depth): rwx = '' - if f.Readable: rwx += 'r' - if f.Writeable: rwx += 'w' - if f.Executable: rwx += 'x' + rwx += 'r' if f.Readable else '-' + rwx += 'w' if f.Writeable else '-' + rwx += 'x' if f.Executable else '-' prefix = ' ' * (depth-lvl) ident = f.associators(AssocClass='LMI_FileIdentity')[0] yield(get_file_identification(f), prefix+f.Name, rwx, ident.SELinuxCurrentContext) |