prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  efs tag support
  I am finding that searching for tagging of EFS resources does not consistently report the correct results.  It did find an EFS that was incorrectly tagged, but after it was corrected it continues to report the same resource.  I use the same filter for other resource types and do not see this behavior.
  
  ```
  - name: efs-tag-compliance
    resource: efs
    description:
      Notify if an EFS does not comply with tagging best practices.
    mode:
        type: periodic
        schedule: "rate(24 hours)"
        role: arn:aws:iam::MYACCOUNT:role/cloud-custodian
    filters:
      - or:
        - "tag:CostCenter": absent
        - "tag:POC": absent
        - "tag:Service": absent
        - "tag:Name": absent
  ...
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `c7n/resources/efs.py`
  Content:
  ```
  1 # Copyright 2016 Capital One Services, LLC
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 # http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 from c7n.actions import Action
  15 from c7n.manager import resources
  16 from c7n.query import QueryResourceManager
  17 from c7n.utils import local_session, type_schema, get_retry
  18 
  19 
  20 @resources.register('efs')
  21 class ElasticFileSystem(QueryResourceManager):
  22 
  23     class resource_type(object):
  24         service = 'efs'
  25         enum_spec = ('describe_file_systems', 'FileSystems', None)
  26         id = 'FileSystemId'
  27         name = 'Name'
  28         date = 'CreationTime'
  29         dimension = None
  30 
  31 
  32 @ElasticFileSystem.action_registry.register('delete')
  33 class Delete(Action):
  34 
  35     schema = type_schema('delete')
  36     permissions = ('efs:DescribeMountTargets',
  37                    'efs:DeleteMountTargets',
  38                    'efs:DeleteFileSystem')
  39 
  40     def process(self, resources):
  41         client = local_session(self.manager.session_factory).client('efs')
  42         self.unmount_filesystems(resources)
  43         retry = get_retry(('FileSystemInUse',), 12)
  44         for r in resources:
  45             retry(client.delete_file_system, FileSystemId=r['FileSystemId'])
  46 
  47     def unmount_filesystems(self, resources):
  48         client = local_session(self.manager.session_factory).client('efs')
  49         for r in resources:
  50             if not r['NumberOfMountTargets']:
  51                 continue
  52             for t in client.describe_mount_targets(
  53                     FileSystemId=r['FileSystemId'])['MountTargets']:
  54                 client.delete_mount_target(MountTargetId=t['MountTargetId'])
  55
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/c7n/resources/efs.py b/c7n/resources/efs.py
  --- a/c7n/resources/efs.py
  +++ b/c7n/resources/efs.py
  @@ -27,6 +27,7 @@
           name = 'Name'
           date = 'CreationTime'
           dimension = None
  +        detail_spec = ('describe_tags', 'FileSystemId', 'FileSystemId', None)
   
   
   @ElasticFileSystem.action_registry.register('delete')
  
verification_info: {"golden_diff": "diff --git a/c7n/resources/efs.py b/c7n/resources/efs.py\n--- a/c7n/resources/efs.py\n+++ b/c7n/resources/efs.py\n@@ -27,6 +27,7 @@\n         name = 'Name'\n         date = 'CreationTime'\n         dimension = None\n+        detail_spec = ('describe_tags', 'FileSystemId', 'FileSystemId', None)\n \n \n @ElasticFileSystem.action_registry.register('delete')\n", "issue": "efs tag support\nI am finding that searching for tagging of EFS resources does not consistently report the correct results.  It did find an EFS that was incorrectly tagged, but after it was corrected it continues to report the same resource.  I use the same filter for other resource types and do not see this behavior.\r\n\r\n```\r\n- name: efs-tag-compliance\r\n  resource: efs\r\n  description:\r\n    Notify if an EFS does not comply with tagging best practices.\r\n  mode:\r\n      type: periodic\r\n      schedule: \"rate(24 hours)\"\r\n      role: arn:aws:iam::MYACCOUNT:role/cloud-custodian\r\n  filters:\r\n    - or:\r\n      - \"tag:CostCenter\": absent\r\n      - \"tag:POC\": absent\r\n      - \"tag:Service\": absent\r\n      - \"tag:Name\": absent\r\n...\r\n```\n", "before_files": [{"content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\nfrom c7n.actions import Action\nfrom c7n.manager import resources\nfrom c7n.query import QueryResourceManager\nfrom c7n.utils import local_session, type_schema, get_retry\n\n\n@resources.register('efs')\nclass ElasticFileSystem(QueryResourceManager):\n\n    class resource_type(object):\n        service = 'efs'\n        enum_spec = ('describe_file_systems', 'FileSystems', None)\n        id = 'FileSystemId'\n        name = 'Name'\n        date = 'CreationTime'\n        dimension = None\n\n\n@ElasticFileSystem.action_registry.register('delete')\nclass Delete(Action):\n\n    schema = type_schema('delete')\n    permissions = ('efs:DescribeMountTargets',\n                   'efs:DeleteMountTargets',\n                   'efs:DeleteFileSystem')\n\n    def process(self, resources):\n        client = local_session(self.manager.session_factory).client('efs')\n        self.unmount_filesystems(resources)\n        retry = get_retry(('FileSystemInUse',), 12)\n        for r in resources:\n            retry(client.delete_file_system, FileSystemId=r['FileSystemId'])\n\n    def unmount_filesystems(self, resources):\n        client = local_session(self.manager.session_factory).client('efs')\n        for r in resources:\n            if not r['NumberOfMountTargets']:\n                continue\n            for t in client.describe_mount_targets(\n                    FileSystemId=r['FileSystemId'])['MountTargets']:\n                client.delete_mount_target(MountTargetId=t['MountTargetId'])\n", "path": "c7n/resources/efs.py"}], "after_files": [{"content": "# Copyright 2016 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\nfrom c7n.actions import Action\nfrom c7n.manager import resources\nfrom c7n.query import QueryResourceManager\nfrom c7n.utils import local_session, type_schema, get_retry\n\n\n@resources.register('efs')\nclass ElasticFileSystem(QueryResourceManager):\n\n    class resource_type(object):\n        service = 'efs'\n        enum_spec = ('describe_file_systems', 'FileSystems', None)\n        id = 'FileSystemId'\n        name = 'Name'\n        date = 'CreationTime'\n        dimension = None\n        detail_spec = ('describe_tags', 'FileSystemId', 'FileSystemId', None)\n\n\n@ElasticFileSystem.action_registry.register('delete')\nclass Delete(Action):\n\n    schema = type_schema('delete')\n    permissions = ('efs:DescribeMountTargets',\n                   'efs:DeleteMountTargets',\n                   'efs:DeleteFileSystem')\n\n    def process(self, resources):\n        client = local_session(self.manager.session_factory).client('efs')\n        self.unmount_filesystems(resources)\n        retry = get_retry(('FileSystemInUse',), 12)\n        for r in resources:\n            retry(client.delete_file_system, FileSystemId=r['FileSystemId'])\n\n    def unmount_filesystems(self, resources):\n        client = local_session(self.manager.session_factory).client('efs')\n        for r in resources:\n            if not r['NumberOfMountTargets']:\n                continue\n            for t in client.describe_mount_targets(\n                    FileSystemId=r['FileSystemId'])['MountTargets']:\n                client.delete_mount_target(MountTargetId=t['MountTargetId'])\n", "path": "c7n/resources/efs.py"}]}