[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Fabric on Windows Patch
From: |
Armin Ronacher |
Subject: |
[Fab-user] Fabric on Windows Patch |
Date: |
Sun, 15 Mar 2009 08:28:30 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hello everybody,
Just noticed that recent fabric versions do not work on Windows. The reason for
this is that fabric depends on platform dependent time-format codes.
The following patch fixes this:
diff --git a/fabric.py b/fabric.py
index a7cb36f..5a4d267 100755
--- a/fabric.py
+++ b/fabric.py
@@ -80,7 +80,7 @@ DEFAULT_ENV = {
'fab_key_filename': None,
'fab_new_host_key': 'accept',
'fab_shell': '/bin/bash -l -c',
- 'fab_timestamp': datetime.datetime.utcnow().strftime('%F_%H-%M-%S'),
+ 'fab_timestamp': datetime.datetime.utcnow().strftime('%Y_%m_%d_%H-%M-%S'),
'fab_print_real_sudo': False,
'fab_fail': 'abort',
'fab_quiet': False,
Regards,
Armin
- [Fab-user] Fabric on Windows Patch,
Armin Ronacher <=