from keystone import get_token,keystone_main from glance import glance_main if __name__ == '__main__': ip="172.30.26.171" token=get_token.get_token(ip, 'demo', 'admin', 'admin', '000000') print("====================") print("选择一个操作:") print("====================") print("1.Glance操作") print("2.Keystone操作") print("====================") choice=input("输入选项 (1-2): ") if choice=='1': glance_main.glance_main() elif choice=='2': keystone_main.keystone_main() else: print("输入错误")