summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/agent_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/modules/agent_client.py')
-rw-r--r--ironic/drivers/modules/agent_client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ironic/drivers/modules/agent_client.py b/ironic/drivers/modules/agent_client.py
index 86c985e59..d27c8dbd1 100644
--- a/ironic/drivers/modules/agent_client.py
+++ b/ironic/drivers/modules/agent_client.py
@@ -174,3 +174,10 @@ class AgentClient(object):
return self._command(node=node,
method='standby.power_off',
params={})
+
+ def sync(self, node):
+ """Flush file system buffers forcing changed blocks to disk."""
+ return self._command(node=node,
+ method='standby.sync',
+ params={},
+ wait=True)