Beispiel #1
0
 def is_not_dryrun(self, action):
     if "true" in self.querystring.get("DryRun", ["false"]):
         message = (
             "An error occurred (DryRunOperation) when calling the %s operation: Request would have succeeded, but DryRun flag is set"
             % action)
         raise DryRunClientError(error_type="DryRunOperation",
                                 message=message)
     return True
Beispiel #2
0
 def is_not_dryrun(self, action):
     if 'true' in self.querystring.get('DryRun', ['false']):
         message = 'An error occurred (DryRunOperation) when calling the %s operation: Request would have succeeded, but DryRun flag is set' % action
         raise DryRunClientError(error_type="DryRunOperation",
                                 message=message)
     return True