Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when no domain is set #222

Closed
silug opened this issue Dec 17, 2024 · 0 comments · Fixed by #223
Closed

Error when no domain is set #222

silug opened this issue Dec 17, 2024 · 0 comments · Fixed by #223

Comments

@silug
Copy link
Contributor

silug commented Dec 17, 2024

On a node with no domain, fact_on(sut, 'networking.domain') returns nil. This will break the following two lines:

lib/simp/beaker_helpers.rb:726:      current_domain = fact_on(sut, 'networking.domain').strip
lib/simp/beaker_helpers.rb:747:      if fact_on(sut, 'networking.domain').strip.empty?

This results in the following error:

Failure/Error: fix_errata_on(hosts)
NoMethodError:
  undefined method `strip' for nil
  
# ./vendor/ruby/3.3.0/gems/simp-beaker-helpers-1.34.0/lib/simp/beaker_helpers.rb:726:in `block in linux_errata'
@op-ct op-ct added this to Org Triage Dec 17, 2024
silug added a commit to silug/rubygem-simp-beaker-helpers that referenced this issue Dec 17, 2024
rgardner4012 pushed a commit that referenced this issue Dec 17, 2024
@github-project-automation github-project-automation bot moved this from New to Done in Org Triage Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant