Fix logic in get_api_status method

Change-Id: I9650c8378e6203f84727df84565737bca2858212
Related-PROD: PROD-26266
(cherry picked from commit 6c1b9934bf15c811645cb8e0a22968ddea2cebbc)
1 file changed