Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Kurt Wall updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Kurt Wall QA Status: Reviewed Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Kurt Wall assigned an issue to Unassigned Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Kurt Wall Assignee: Kurt Wall Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Kurt Wall assigned an issue to Kurt Wall Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Kurt Wall Assignee: Kurt Wall Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Josh Cooper updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Josh Cooper Component/s: Community Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Josh Cooper commented on PUP-3728 Re: Cron type uses incorrect month when month name is provided This was merged to stable in e89f32be5 and merged up to master in 09ef87250e and passed CI in ed3bbd487 Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Kylo Ginsberg updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Kylo Ginsberg Fix Version/s: PUP 4.0.0 Fix Version/s: PUP 3.7.4 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Kylo Ginsberg updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Kylo Ginsberg Fix Version/s: PUP 4.0.0 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Charlie Sharpsteen commented on PUP-3728 Re: Cron type uses incorrect month when month name is provided Pull request submitted: https://github.com/puppetlabs/puppet/pull/3380 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Charlie Sharpsteen commented on PUP-3728 Re: Cron type uses incorrect month when month name is provided This behavior stems from the use of an array of strings against which the alphabetic value is matched to generate a numeric index: def alpha %w{january february march april may june july august september october november december} end The problem is that this method assumes 0 based indexing in the output range. The easiest fix is probably to add a "null" value to the beginning of the array so that the months indices are shifted up by one value. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e)
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Ed Hargin commented on PUP-3728 Re: Cron type uses incorrect month when month name is provided It should be noted that specifying the month as a number, e.g. December being 12, works as expected. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Ed Hargin updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Ed Hargin {code:puppet} cron { 'demo cron job':command => 'echo test',user => 'root',hour => '1',minute => '0',month=> 'December',monthday => ['3-15'],} {code}This should create a cronjob like this:{{0 1 3-15 12 * echo test}}Instead it creates a cronjob like this:{{0 1 3-15 11 * echo test}}Note that this creates a cronjob for the 11th month, November, rather than the 12th. Cron counts months from 1-12, rather than 0-11. Each month Puppet appears to be create cronjobs with a month number minus 1 fewer than it should .If you give it "January" as a month, you get an invalid cron entry , which is not cannot be created. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Ed Hargin updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Ed Hargin { { code:puppet} cron { 'demo cron job':command => 'echo test',user => 'root',hour => '1',minute => '0',month=> 'December',monthday => ['3-15'],} {code } } This should create a cronjob like this:{{0 1 3-15 12 * echo test}}Instead it creates a cronjob like this:{{0 1 3-15 11 * echo test}}Note that this creates a cronjob for the 11th month, November, rather than the 12th. Cron counts months from 1-12, rather than 0-11.Each month appears to be month number minus 1.If you give it "January" as a month, you get an invalid cron entry, which is not created. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Ed Hargin updated an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Change By: Ed Hargin {{ cron { 'demo cron job':command => 'echo test',user => 'root',hour => '1',minute => '0',month=> 'December',monthday => ['3-15'],} }}This should create a cronjob like this:{{0 1 3-15 12 * echo test}}Instead it creates a cronjob like this:{{0 1 3-15 11 * echo test}}Note that this creates a cronjob for the 11th month, November, rather than the 12th. Cron counts months from 1-12, rather than 0-11.Each month appears to be month number minus 1.If you give it "January" as a month, you get an invalid cron entry, which is not created. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3728) Cron type uses incorrect month when month name is provided
Title: Message Title Ed Hargin created an issue Puppet / PUP-3728 Cron type uses incorrect month when month name is provided Issue Type: Bug Affects Versions: PUP 3.7.3 Assignee: Kylo Ginsberg Components: Types and Providers Created: 2014/12/03 4:59 AM Environment: RHEL 6.2 cronie-anacron-1.4.4-7.el6.x86_64 cronie-1.4.4-7.el6.x86_64 Priority: Normal Reporter: Ed Hargin {{ cron { 'demo cron job': command => 'echo test', user => 'root', hour => '1', minute => '0', month => 'December', monthday => ['3-15'], } }} This should create a cronjob like this: 0 1 3-15 12 * echo test Instead it creates a cronjob like this: 0 1 3-15 11 * echo test Note that this creates a cronjob for the 11th month, November, rather than the 12th. Cron counts months from 1-12, rather than 0-11. Each month appears to be month number minus 1. If you give it "January"