Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
hawk
ruby-1.9-when.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ruby-1.9-when.patch of Package hawk
diff --git a/hawk/app/controllers/main_controller.rb b/hawk/app/controllers/main_controller.rb index 25286b5..638fc64 100644 --- a/hawk/app/controllers/main_controller.rb +++ b/hawk/app/controllers/main_controller.rb @@ -154,7 +154,7 @@ class MainController < ApplicationController params[:injections].each do |i| parts = i.split(/\s+/) case parts[0] - when "node": + when "node" case parts[2] when "online" injections << "-u" << parts[1] @@ -163,7 +163,7 @@ class MainController < ApplicationController when "unclean" injections << "-f" << parts[1] end - when "op": + when "op" # TODO(should): map to be static somewhere (must match map in status.js) rc_map = { "success" => 0, @@ -181,7 +181,7 @@ class MainController < ApplicationController # "op monitor:0 stonith-sbd success node-0" parts[1].sub!(":", "_") injections << "-i" << "#{parts[2]}_#{parts[1]}@#{parts[4]}=#{rc_map[parts[3]]}" - when "ticket": + when "ticket" # TODO(could): Warn if feature doesn't exist (or don't show ticket button in UI at all) if Util.has_feature?(:sim_ticket) case parts[2]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor