Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge "[CC] Reject Unsupported Runtimes"

  • Loading branch information...
commit 92eb1aeb2d7d30af208088ba9f6ec36bec04026e 2 parents c26483e + 23b3f8a
@d d authored Gerrit Code Review committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  cloud_controller/app/models/app.rb
View
2  cloud_controller/app/models/app.rb
@@ -34,7 +34,7 @@ class App < ActiveRecord::Base
# TODO - Update vmc client to use reasonable strings for these.
validates_inclusion_of :framework, :in => Frameworks
- validates_inclusion_of :runtime, :in => Runtimes
+ validates_inclusion_of :runtime, :in => Runtimes & AppConfig[:runtimes].keys.map(&:to_s)
validates_inclusion_of :state, :in => AppStates
validates_inclusion_of :package_state, :in => PackageStates
Please sign in to comment.
Something went wrong with that request. Please try again.