You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/05/22 11:33:33 UTC
[whimsy] branch master updated: Drop empty resourceAliases
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new daf3c6d Drop empty resourceAliases
daf3c6d is described below
commit daf3c6d4234b057d1dd9a2ebd81e4f410e9f684b
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 22 12:33:30 2017 +0100
Drop empty resourceAliases
---
www/roster/public_podlings.rb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/www/roster/public_podlings.rb b/www/roster/public_podlings.rb
index 95ab46c..140264f 100644
--- a/www/roster/public_podlings.rb
+++ b/www/roster/public_podlings.rb
@@ -80,6 +80,9 @@ public_json_output(
if ARGV.length == 2
podh = Hash[ASF::Podling.list.map {|podling| [podling.name, podling.as_hash]}]
+ podh.each do |p| # drop empty aliases
+ p[1].delete(:resourceAliases) if p[1][:resourceAliases].length == 0
+ end
public_json_output_file({
last_updated: mtime,
podling: podh
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].