From 3d61baea5060ed1ff75ec14d6b8a2153b8c99780 Mon Sep 17 00:00:00 2001 From: Basir Jamil Date: Thu, 6 Jun 2019 15:00:04 -0400 Subject: [PATCH] fixed issue with accessing home dir --- octodns/provider/fastdns.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/octodns/provider/fastdns.py b/octodns/provider/fastdns.py index e8fb35c..1ce91d0 100644 --- a/octodns/provider/fastdns.py +++ b/octodns/provider/fastdns.py @@ -86,7 +86,10 @@ class AkamaiProvider(BaseProvider): #### create credential file, and write credentials to it - with open('~/.edgerc', 'a') as credFile: + + home = expanduser("~") + filename = "%s/.edgerc" % home + with open(filename, 'a') as credFile: credFile.write('[dns]\n')