RexOps / RexOps/Rex

Rex::Virtualization doesnt accept a hashref like intended

Open
#1,549 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

info needed triage needed
Dominant language
Perl
Stars
737
Forks
214
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The intention seems to be to permit:

set virtualization => {
  type => 'LibVirt',
  %other
}

However in the above case the "type" would just be saved in to Rex::Config and that would be it.

Expected behavior

With

set virtualization => {
  type => 'LibVirt',
  %other
}

The entire hashref would be loaded

How to reproduce it

As above

Code example
set virtualization => {
  type => 'LibVirt',
  %other
}

Rex::Config->get("virtualization");
Additional context

No response

Rex version

1.13.4

Perl version

any

Operating system running rex

any

Operating system managed by rex

any

How rex was installed?

cpan client

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the set virtualization hashref is handled and stored by Rex::Config, using the reproduction in the issue as the entry point. Compare the current behavior with the expected behavior: the complete hashref, including type and other values, should be retrievable through Rex::Config->get("virtualization").

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.