Project

General

Profile

Actions

Bug #9716

closed

Version comparison with Foreman breaks migrate

Added by Eric Helms about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

These lines (https://github.com/theforeman/foreman-docker/blob/master/lib/foreman_docker/engine.rb#L91-L95) lead to the following:

Malformed version number string 1.8.0-RC1
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/version.rb:187:in `initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.1/lib/foreman_docker/engine.rb:92:in `new'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.1/lib/foreman_docker/engine.rb:92:in `block (2 levels) in <class:Engine>'
/usr/share/foreman/app/services/foreman/plugin.rb:62:in `instance_eval'
/usr/share/foreman/app/services/foreman/plugin.rb:62:in `register'
Actions #1

Updated by Dominic Cleal about 9 years ago

I'd usually recommend that plugins branch rather than try to do version comparisons in code, it's more reliable...

Actions #2

Updated by The Foreman Bot about 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/99 added
  • Pull request deleted ()
Actions #3

Updated by David Davis about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Dominic Cleal about 9 years ago

foreman_docker 1.2.2's now published to our repos with the fix.

Actions

Also available in: Atom PDF