Skip to content

Commit 8914726

Browse files
committed
api: fix wrong response object type of listTrafficTypes API
1 parent 03a4b9f commit 8914726

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/usage/ListTrafficTypesCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
import org.apache.cloudstack.api.Parameter;
2727
import org.apache.cloudstack.api.response.ListResponse;
2828
import org.apache.cloudstack.api.response.PhysicalNetworkResponse;
29-
import org.apache.cloudstack.api.response.ProviderResponse;
3029
import org.apache.cloudstack.api.response.TrafficTypeResponse;
3130

3231
import com.cloud.network.PhysicalNetworkTrafficType;
3332
import com.cloud.user.Account;
3433
import com.cloud.utils.Pair;
3534

36-
@APICommand(name = "listTrafficTypes", description = "Lists traffic types of a given physical network.", responseObject = ProviderResponse.class, since = "3.0.0",
35+
@APICommand(name = "listTrafficTypes", description = "Lists traffic types of a given physical network.", responseObject = TrafficTypeResponse.class, since = "3.0.0",
3736
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
3837
public class ListTrafficTypesCmd extends BaseListCmd {
3938

0 commit comments

Comments
 (0)