mirror of
https://gitlab.com/fabinfra/fabaccess/pyfabapi.git
synced 2025-03-12 06:41:42 +01:00
Improve test.py again
This commit is contained in:
parent
47d22cf973
commit
be45aabed7
4
test.py
4
test.py
@ -4,7 +4,9 @@ import fabapi
|
||||
|
||||
async def main():
|
||||
session = await fabapi.connect("localhost", 59661, "Testuser", "secret")
|
||||
print(session)
|
||||
info = await session.machineSystem.info().a_wait()
|
||||
ma = await info.info.getMachineURN("urn:fabaccess:resource:Another").a_wait()
|
||||
print(ma.machine)
|
||||
|
||||
if __name__ == "__main__":
|
||||
loop = asyncio.get_event_loop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user