From f6521d88f5e9cb5dc092bd4bf7ae69dd408a6e82 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 11 Jun 2013 09:13:32 +0200 Subject: [PATCH 1/3] setup epoch time doesn't have tics on Python 2.6.4 (Solaris). --- library/system/setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/system/setup b/library/system/setup index 274fb469ee..d627ba6e72 100644 --- a/library/system/setup +++ b/library/system/setup @@ -365,6 +365,8 @@ class Facts(object): self.facts['date_time']['minute'] = now.strftime('%M') self.facts['date_time']['second'] = now.strftime('%S') self.facts['date_time']['epoch'] = now.strftime('%s') + if self.facts['date_time']['epoch'][0] == '%': + self.facts['date_time']['epoch'] = str(int(time.time())) self.facts['date_time']['date'] = now.strftime('%Y-%m-%d') self.facts['date_time']['time'] = now.strftime('%H:%M:%S') self.facts['date_time']['iso8601_micro'] = now.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ") From d2ea9d85d0548f7d2dac45dfaf65234e21ba3671 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Thu, 13 Jun 2013 14:01:32 -0400 Subject: [PATCH 2/3] Fix broken link in django_manage doc --- library/web_infrastructure/django_manage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/web_infrastructure/django_manage b/library/web_infrastructure/django_manage index c8f89ce991..1bf2e5b3c5 100644 --- a/library/web_infrastructure/django_manage +++ b/library/web_infrastructure/django_manage @@ -71,7 +71,7 @@ options: - A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command. required: false notes: - - U(http://www.virtualenv.org/, virtualenv) must be installed on the remote host if the virtualenv parameter is specified. + - I(virtualenv) (U(http://www.virtualenv.org)) must be installed on the remote host if the virtualenv parameter is specified. - This module will create a virtualenv if the virtualenv parameter is specified and a virtualenv does not already exist at the given location. - This module assumes English error messages for the 'createcachetable' command to detect table existence, unfortunately. requirements: [ "virtualenv", "django" ] @@ -87,11 +87,11 @@ django_manage: command=loaddata app_path=$django_dir fixtures=$initial_data #Run syncdb on the application django_manage: > - command=syncdb - app_path=$django_dir - settings=$settings_app_name - pythonpath=$settings_dir - virtualenv=$virtualenv_dir + command=syncdb + app_path=$django_dir + settings=$settings_app_name + pythonpath=$settings_dir + virtualenv=$virtualenv_dir database=$mydb #Run the SmokeTest test case from the main app. Useful for testing deploys. From 8b188429c77f7c91481dacd453ba0ab931539139 Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Fri, 14 Jun 2013 20:45:58 +0200 Subject: [PATCH 3/3] docfix on file module, aliases for path parameter --- library/files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/files/file b/library/files/file index ed957819eb..85befb3415 100644 --- a/library/files/file +++ b/library/files/file @@ -42,7 +42,7 @@ options: - defines the file being managed, unless when used with C(state=link), and then sets the destination to create a symbolic link to using I(src) required: true default: [] - aliases: [] + aliases: ['dest', 'name'] state: description: - If C(directory), all immediate subdirectories will be created if they