DaanHoogland commented on code in PR #10254:
URL: https://github.com/apache/cloudstack/pull/10254#discussion_r1927041178


##########
systemvm/debian/opt/cloud/bin/configure.py:
##########
@@ -932,6 +932,7 @@ def __htaccess(self, ip, folder, file):
         if os.path.exists(htaccessFile):
             fh = open(htaccessFile, "a+")
             self.__exflock(fh)
+            fh.seek(0)
             if entry not in fh.read():
                 fh.write(entry + '\n')

Review Comment:
   well, the write operation is changed in so far that the seek(0) positions 
the cursor as the beginning of the file and writes would start at a different 
spot as well, would they? I read through the python docs on io and it seems to 
work that way. Are you seeing different behaviour?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to