Skip to content

fix: resolve xml dir for non root setup#2434

Open
yaroslavborbat wants to merge 2 commits into
mainfrom
fix/vlctl-domain
Open

fix: resolve xml dir for non root setup#2434
yaroslavborbat wants to merge 2 commits into
mainfrom
fix/vlctl-domain

Conversation

@yaroslavborbat
Copy link
Copy Markdown
Member

@yaroslavborbat yaroslavborbat commented Jun 2, 2026

Description

resolve xml dir for non root setup

Why do we need it, and what problem does it solve?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: fix 
summary: resolve xml dir for non root setup
impact_level: low

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
Comment thread images/virt-launcher/vlctl/cmd/vlctl/app/domain.go Outdated
Co-authored-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
Signed-off-by: Yaroslav Borbat <86148689+yaroslavborbat@users.noreply.github.com>
func resolveXMLDir() (string, error) {
_, err := os.Stat(xmlDirNonRoot)
if err == nil {
return xmlDirNonRoot
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return xmlDirNonRoot
return xmlDirNonRoot, nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants