Fix bug with %W formatting in attributes.rb

- Adjust attributes.rb to use the appropriate %W formatting

Change-Id: Ibd398a87be3bc001acc05bf29e04d29eeef3fc2e
Merge "Fix bug with %W formatting in attributes.rb"