Skip to content

Investigate possible turning of open_containerfile_directives() into a context manager #4568

@thrix

Description

@thrix

Context

In tmt/steps/provision/__init__.py:

full_script = ShellScript.from_scripts(script_parts)

# Add to the package manager's engine
self.package_manager.engine.open_containerfile_directives()

The open_containerfile_directives() method should be refactored to be a context manager for better resource handling.

Original discussion

#4525 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    code | styleCode style changes not affecting functionality

    Type

    No type

    Projects

    Status

    backlog

    Status

    triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions