def update(self, plan_name, plan_files):
        """Updates a plan by updating the files in container

        Updates a plan by updating the files in the Swift container
        matching plan_name.

        :param plan_name: The name of the plan
        :type plan_name: str
        :param plan_files: names and contents of files to store
        :type plan_files: dict
        """

        for filename, details in plan_files.items():
            custom_headers = {}
            if 'meta' in details:
                custom_headers = meta.add_key_prefix(details['meta'])
            self.swiftclient.put_object(
                plan_name,
                filename,
                details['contents'],
                headers=custom_headers
            )
dataset/ETHPy150Open openstack/tripleo-common/tripleo_common/core/plan_storage.py/SwiftPlanStorageBackend.update/original