Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2251

Consistent attribute names in file_select to match file_result

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      N/A

      Description

      Consider the "file_select syntax":https://docs.cfengine.com/lts/reference-all-types.html#file_select.
      If you compare the attribute names and the valid syntax for "file_result":https://docs.cfengine.com/lts/reference-promise-types-files.html#file_result, they do not always match as seen below.

      Attribute Corresponding file_result Comment
      atime atime  
      ctime ctime  
      exec_program exec_program  
      exec_regex exec_regex  
      file_types file_types  
      issymlinkto issymlinkto  
      leaf_name leaf_name  
      mtime mtime  
      path_name path_name  
      search_bsdflags bsdflags MISMATCH
      search_groups group MISMATCH
      search_mode mode MISMATCH
      search_owners owner MISMATCH
      search_size size MISMATCH

      The attributes that mismatch should be renamed to match the file_result, but proper deprecation should be done to handle backward compatibility.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              a10003 Eystein Maloy Stenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel