Fix string formatting without format() in rh_ip.py

Fix #7808