[chef] knife chokes on "~/" syntax in .config/knife.rb


Chronological Thread 
  • From: Hedge Hog < >
  • To:
  • Subject: [chef] knife chokes on "~/" syntax in .config/knife.rb
  • Date: Sun, 13 Feb 2011 19:32:13 +1100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=aKJ5nQUe7eOmyKF/WwHfxy6xs+BKzi2TFOd/5CK2B0iuNeMepiTOh5tvw1YW/gdKR3 zSTlUzlp+5rgCw7pZ/q3Bis8pcnhSrygbewj5khcH8SWRqg4M4l5gCePMx1AFFrxwHM6 hXc4OiFF50CKjCyR7req784wkaVYtpVsTG2Jw=

Hi,
I've looked through the open knife issues and din't notice anything,
but would like to confirm this is not a known bug before opening a
ticket:

client_key "~/chef/server/etc/client.pem"

leads to:

FATAL: Failed to read the private key ~/chef/server/etc/client.pem:
#<Errno::ENOENT: No such file or directory -
~/chef/server/etc/client.pem>,

Expanding the path in .config/knife.rb and all runs OK.

TIA

-- 
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
  Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com



Archive powered by MHonArc 2.6.16.

§