[dev_setup] Group should be an integer

Newer versions of Chef varies its behavior based on the type of GID.
This patch (kudos to Doug MacEachern) makes both new and old versions
happy.

Change-Id: Ib7f05899d2e2e04ca34385512efcad8509d9cc5d
This commit is contained in:
Jesse Zhang 2012-05-14 12:45:13 -07:00
Родитель f01313f758
Коммит 4fc210c762
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -40,7 +40,7 @@ spec = YAML.load_file(deployment_spec)
spec["deployment"] ||= {}
spec["deployment"]["name"] ||= DEPLOYMENT_DEFAULT_NAME
spec["deployment"]["user"] ||= ENV["USER"]
spec["deployment"]["group"] ||= `id -g`.strip
spec["deployment"]["group"] ||= `id -g`.strip.to_i
spec["deployment"]["domain"] ||= cloudfoundry_domain
spec["cloudfoundry"] ||= {}
spec["cloudfoundry"]["home"] ||= cloudfoundry_home