4949from .util .files import chmod , sed_replace
5050
5151
52- @operation
52+ @operation ( is_idempotent = False )
5353def reboot (delay = 10 , interval = 1 , reboot_timeout = 300 , state = None , host = None ):
5454 '''
5555 Reboot the server and wait for reconnection.
@@ -102,7 +102,7 @@ def wait_and_reconnect(state, host): # pragma: no cover
102102 yield FunctionCommand (wait_and_reconnect , (), {})
103103
104104
105- @operation
105+ @operation ( is_idempotent = False )
106106def wait (port = None , state = None , host = None ):
107107 '''
108108 Waits for a port to come active on the target machine. Requires netstat, checks every
@@ -128,7 +128,7 @@ def wait(port=None, state=None, host=None):
128128 ''' .format (port )
129129
130130
131- @operation
131+ @operation ( is_idempotent = False )
132132def shell (commands , state = None , host = None ):
133133 '''
134134 Run raw shell code on server during a deploy. If the command would
@@ -155,7 +155,7 @@ def shell(commands, state=None, host=None):
155155 yield command
156156
157157
158- @operation
158+ @operation ( is_idempotent = False )
159159def script (src , state = None , host = None ):
160160 '''
161161 Upload and execute a local script on the remote host.
@@ -180,7 +180,7 @@ def script(src, state=None, host=None):
180180 yield temp_file
181181
182182
183- @operation
183+ @operation ( is_idempotent = False )
184184def script_template (src , state = None , host = None , ** data ):
185185 '''
186186 Generate, upload and execute a local script template on the remote host.
0 commit comments