-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added is_type function #3391
base: master
Are you sure you want to change the base?
Added is_type function #3391
Conversation
aef1688
to
5659a0f
Compare
Ticket: CFE-3641 Signed-off-by: Victor Moene <[email protected]>
5659a0f
to
f614a99
Compare
@cf-bottom jenkins, please |
|
||
[%CFEngine_function_attributes(var, type)%] | ||
|
||
This function works by comparing the type description of `var` with the string `type`. The function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function works by comparing the type description of `var` with the string `type`. The function | |
This function compares the type description of `var` with the string `type`. The function |
This function works by comparing the type description of `var` with the string `type`. The function | ||
expects a variable identifier as the first argument `var` and a type string as | ||
the second argument `type`. The type accepts both the type and an optional subtype. The function | ||
by default evaluates to false if the variable or the type string are wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by default evaluates to false if the variable or the type string are wrong. | |
evaluates to false by default if the variable or the type string is wrong. |
the second argument `type`. The type accepts both the type and an optional subtype. The function | ||
by default evaluates to false if the variable or the type string are wrong. | ||
|
||
To see the possible data types and theit subtypes, see `type()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To see the possible data types and theit subtypes, see `type()` | |
To see the possible data types and their subtypes, see `type()` |
[%CFEngine_function_attributes(var, type)%] | ||
|
||
This function works by comparing the type description of `var` with the string `type`. The function | ||
expects a variable identifier as the first argument `var` and a type string as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expects a variable identifier as the first argument `var` and a type string as | |
expects a variable identifier as the first argument and a type string as |
|
||
This function works by comparing the type description of `var` with the string `type`. The function | ||
expects a variable identifier as the first argument `var` and a type string as | ||
the second argument `type`. The type accepts both the type and an optional subtype. The function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the second argument `type`. The type accepts both the type and an optional subtype. The function | |
the second argument. The type accepts both the type and an optional subtype. The function |
Merge together:
cfengine/core#5691
#3391