Skip to content

Commit

Permalink
EmrEtlRunner: fixed copy to staging for Tomcat7 logs with hyphen afte…
Browse files Browse the repository at this point in the history
…r .txt (closes #1480)
  • Loading branch information
alexanderdean committed Mar 9, 2015
1 parent e6e5f97 commit eb73b90
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ def self.stage_logs_for_emr(args, config)

# This will convert Beanstalk epoch timestamps to our CloudFront-like yyyy-MM-dd-HH
final_name, final_extn =
if name_match = name.match(/^_*(.*)\.txt([[:digit:]]+)$/)
if name_match = name.match(/^_*(.*)\.txt-?([[:digit:]]+)$/)
base, tstamp = name_match.captures
begin
tstamp_ymdh = Time.at(tstamp.to_i).utc.to_datetime.strftime("%Y-%m-%d-%H")
Expand Down

0 comments on commit eb73b90

Please sign in to comment.