chef / chef-apply

The ad-hoc execution tool for the Chef ecosystem.
https://www.chef.sh/
Apache License 2.0
14 stars 14 forks source link

Can't pass symbols for ad-hoc resource property values #52

Closed KrisShannon closed 3 years ago

KrisShannon commented 5 years ago

Description

Many resources use symbols for property values and don't auto-convert strings.

Chef Apply Version

% chef-run --version                                                                               
chef-run: 0.2.0

Replication Case

An example is the guard_interpreter property chef-run user@host directory /tmp/test guard_interpreter=perl only_if='my $var; exit 0'

Client Output

A property value you provided is not valid:

  Option guard_interpreter must be a kind of [Symbol]!  You passed "perl".
tyler-ball commented 5 years ago

Thanks @KrisShannon - I think we could make this an easy fix by allowing users to specify guard_interpreter=:perl or guard_interpreter=":perl" and we convert that to a symbol instead of a string internally

tas50 commented 3 years ago

This fix will go out in this weeks Chef Workstation