New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds tenant and tentanttag support #61
Conversation
5831a6b
to
b7b4097
Compare
@@ -150,6 +150,8 @@ | |||
environment = new_resource.environment | |||
config_path = new_resource.config_path | |||
service_name = service_name(instance) | |||
tenant = new_resource.tenant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plural since this is an array
6acbc58
to
97e1a81
Compare
@@ -37,3 +37,5 @@ | |||
attribute :api_key, kind_of: String | |||
attribute :roles, kind_of: Array | |||
attribute :environment, kind_of: String, default: node.chef_environment | |||
attribute :tenants, kind_of: Array, default: nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not default to empty array? If we default them to empty array the other PR actualy isn't needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried empty array initially. Gives a deprecation warning
Deprecated features used!
An attempt was made to change tenant_tags from [] to nil by calling tenant_tags(nil). In Chef 12, this does a get rather than a set. In Chef 13, this will change to set the value to nil. at 1 location:
- C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/nd-octopus/recipes/tentacle.rb:15:in `block in from_file'
LGTM just going to wait for #60 before merging |
Just do a down merge and rebase and this should be good to go |
359cbb9
to
3656caf
Compare
Default to empty array changes to ruby variable names Updates readme changes default to nil
3656caf
to
db3e109
Compare
Rebased. Ready 🚀 |
Description
Allows cookbook to add a machine to a tenant or add tenant tags
I've manually tested this. Not sure how to automate testing this.
Contribution Check List