def retry_argument_spec(spec=None):
 arg_spec = dict(retries=dict(type='int'), retry_pause=dict(type='float', default=1))
 if spec:
  arg_spec.update(spec)
 return arg_spec

def retry_argument_spec ( spec = None ) : arg_spec = dict ( retries = dict ( type = 'int' ) , retry_pause = dict ( type = 'float' , default = 1 ) ) if spec : arg_spec . update ( spec ) return arg_spec
creates an argument spec for working with retrying .