You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marathon_deploy fails when parsing the following yml (see file below).
We ensured that the yml can be converted to JSON and back to YAML with http://jsontoyaml.com/ and http://yamltojson.com/:
$ marathon_deploy local-groups.yml -u http://192.168.10.10:8080
/Library/Ruby/Gems/2.0.0/gems/marathon_deploy-0.1.48/lib/marathon_deploy/application.rb:39:in `initialize': undefined method `each' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/marathon_deploy-0.1.48/bin/marathon_deploy:136:in `new'
from /Library/Ruby/Gems/2.0.0/gems/marathon_deploy-0.1.48/bin/marathon_deploy:136:in `<top (required)>'
from /usr/local/bin/marathon_deploy:23:in `load'
from /usr/local/bin/marathon_deploy:23:in `<main>'
Just guessing, but maybe this would do the trick? In application.rb (line 37):
# JSON fix for marathon
# marathon require ENV variables to be quoted
@json['env'].each do |key, value|
if (value.is_a? Numeric)
@json['env'][key] = value.to_json
end
end if json['env']
just replace the closing end with end if json['env']
The text was updated successfully, but these errors were encountered:
problem is that we never supported groups - that would require rewrite some part of code (injecting ENV variables per app in array / setting defaults instances / memory etc.. )
We could do the easy way first ans support groups without extra features like singe app have.
but is your example even working by curl -X POST -H "Content-Type: application/json" http://$HOSTNAME:8080/v2/apps/ [email protected] ?
I suspect that some part is missing
marathon_deploy
fails when parsing the following yml (see file below).We ensured that the yml can be converted to JSON and back to YAML with http://jsontoyaml.com/ and http://yamltojson.com/:
marathon_deploy
gives us this error:Just guessing, but maybe this would do the trick? In application.rb (line 37):
just replace the closing end with end if json['env']
The text was updated successfully, but these errors were encountered: