Skip to content

Commit f1763a1

Browse files
committed
Merge pull request #124 from ow2-sirocco/fix-reboot
Fix reboot server
2 parents 3e23c1b + 07adf20 commit f1763a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nova-client/src/main/java/com/woorea/openstack/nova/api/ServersResource.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ public RebootAction(String id, Reboot action) {
178178

179179
}
180180

181+
public RebootAction reboot(String serverId, String rebootType) {
182+
Reboot reboot = new Reboot();
183+
reboot.setType(rebootType);
184+
return new RebootAction(serverId, reboot);
185+
}
186+
181187
public class RebuildAction extends Action<Server> {
182188

183189
private Rebuild action;

0 commit comments

Comments
 (0)