Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Unknown
-
Resolution: Unresolved
-
Affects Version/s: 0.10.4
-
Fix Version/s: None
-
Component/s: Knife
-
Labels:None
-
Environment:
Mac OS X 10.7.2, ruby 1.9.2p290
Description
Data bag ids should be coerced to strings before being tested against the VALID_ID regex. Becuase:
smith@iNeXT:~$ knife data bag create test
Created data_bag[test]
smith@iNeXT:~$ cat > t.json
smith@iNeXT:~$ knife data bag from file test t.json
ERROR: Chef::Exceptions::InvalidDataBagItemID: Data Bag items must have an id matching /^[-[:alnum:]_]+$/, you gave: 1
I think numeric ids should be accepted. If this is not possible please let me know why, otherwise, please fix.
Activity
- All
- Comments
- History
- Activity
- Transitions Summary