49
49
from .util .files import chmod , sed_replace
50
50
51
51
52
- @operation
52
+ @operation ( is_idempotent = False )
53
53
def reboot (delay = 10 , interval = 1 , reboot_timeout = 300 , state = None , host = None ):
54
54
'''
55
55
Reboot the server and wait for reconnection.
@@ -102,7 +102,7 @@ def wait_and_reconnect(state, host): # pragma: no cover
102
102
yield FunctionCommand (wait_and_reconnect , (), {})
103
103
104
104
105
- @operation
105
+ @operation ( is_idempotent = False )
106
106
def wait (port = None , state = None , host = None ):
107
107
'''
108
108
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):
128
128
''' .format (port )
129
129
130
130
131
- @operation
131
+ @operation ( is_idempotent = False )
132
132
def shell (commands , state = None , host = None ):
133
133
'''
134
134
Run raw shell code on server during a deploy. If the command would
@@ -155,7 +155,7 @@ def shell(commands, state=None, host=None):
155
155
yield command
156
156
157
157
158
- @operation
158
+ @operation ( is_idempotent = False )
159
159
def script (src , state = None , host = None ):
160
160
'''
161
161
Upload and execute a local script on the remote host.
@@ -180,7 +180,7 @@ def script(src, state=None, host=None):
180
180
yield temp_file
181
181
182
182
183
- @operation
183
+ @operation ( is_idempotent = False )
184
184
def script_template (src , state = None , host = None , ** data ):
185
185
'''
186
186
Generate, upload and execute a local script template on the remote host.
0 commit comments