mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Changed error message for month (#2136)
This commit is contained in:
parent
013c0b72cc
commit
6fa16070e8
@ -113,7 +113,7 @@ bool SchedAction::days_in_range(Repeat r, std::string& error)
|
||||
{
|
||||
static const char * e[] = {
|
||||
"Days in a week have to be in [0,6] range", //WEEKLY - 0
|
||||
"Days in a month have to be in [0,31] range", // MONTHLY - 1
|
||||
"Days in a month have to be in [1,31] range", // MONTHLY - 1
|
||||
"Days in a year have to be in [0,365] range", // YEARLY - 2
|
||||
"Hours have to be in [0,168] range" // HOURLY - 3
|
||||
};
|
||||
@ -215,7 +215,7 @@ int SchedAction::parse(std::string& error, bool clean)
|
||||
|
||||
rc_e = endon(eo);
|
||||
rc_ev = ends_in_range(eo, error);
|
||||
|
||||
|
||||
if ( rc_e == -1 )
|
||||
{
|
||||
error = "Error parsing END_TYPE attribute";
|
||||
@ -230,7 +230,7 @@ int SchedAction::parse(std::string& error, bool clean)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
if ( !days_in_range(r, error) )
|
||||
{
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user