Check for beta in scripts/cdist.
This commit is contained in:
parent
1c07b63f1d
commit
fdf6a6570c
3 changed files with 36 additions and 18 deletions
|
|
@ -56,6 +56,20 @@ class UnresolvableRequirementsError(cdist.Error):
|
|||
pass
|
||||
|
||||
|
||||
class CdistBetaRequired(cdist.Error):
|
||||
"""Beta functionality is used but beta is not enabled"""
|
||||
|
||||
def __init__(self, command, arg):
|
||||
self.command = command
|
||||
self.arg = arg
|
||||
|
||||
def __str__(self):
|
||||
err_msg = ("\'{}\' argument of \'{}\' command is beta, but beta is "
|
||||
"not enabled. If you want to use it please enable beta "
|
||||
"functionalities.")
|
||||
return err_msg.format(self.arg, self.command)
|
||||
|
||||
|
||||
class CdistObjectError(Error):
|
||||
"""Something went wrong with an object"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue