diff --git a/bot.py b/bot.py index 5a720763..982317cb 100644 --- a/bot.py +++ b/bot.py @@ -42,7 +42,7 @@ "**CML show server utilization** > show current CPU and Memory usage\n", "**CML stop lab** > stop labs of your choice\n", "**Request IP** > allocates a static ip address for CML\n", - "**List my IPs** > lists static IPs allocated to you for CML" + "**List my IPs** > lists static IPs allocated to you for CML\n", "**Create AWS account** > create AWS COLAB account\n", "**Create VPN account** > create an AnyConnect to COLAB VPN account\n", "**Create AWS key** > create aws access key\n", diff --git a/features/awx.py b/features/awx.py index 2dd3fd50..f13ad876 100644 --- a/features/awx.py +++ b/features/awx.py @@ -1228,7 +1228,7 @@ async def list_my_ips(activity): # get all IPs ip_addresses = response["Items"][0]["ip_addresses"] markdown = "" - for ip_address, ip_data in ip_addresses: + for ip_address, ip_data in ip_addresses.items(): last_seen = ( datetime.today() - datetime.fromtimestamp(int(ip_data["date_last_used"])) ).days