AWS credentials are not valid : An error occurred (InvalidClientTokenId)

I have to point out I’ve never had a issue unlike GJSchalle but I did apply patch anyway.
I changed test virtual server setting to use local dns and remove account details.
Re-applied everything and all works fine and I don’t see any difference to the config or credentials files.
Maybe the patch fixes the way virtualmin interprets the files. Hopefully it fixes GJSchalle issue.

EDIT: Rebooted, it’s working now.

@Jamie - I uploaded the file s3-lib.pl over the old one in the folder /usr/libexec/webmin/virtual-server, and then tried re-applying my credentials. I am still seeing the same (errornous) result - the credentials file lists:

[default]
aws_access_key_id = AKIAT7JJVFPF4EQUQI5J
aws_secret_access_key = (Key)

[akey_or_id]
aws_access_key_id = akey_or_id
aws_secret_access_key = (Same Key)

Following up to make sure it’s documented clearly - @Jamie 's fix worked, and after rebooting my server, it’s working.

Excellent thanks!