added number of organizations and fixed command for getting them

This commit is contained in:
crp3844
2022-09-08 14:11:53 -04:00
parent c0890fd57d
commit 79d56d00d0

View File

@@ -454,9 +454,9 @@ if __name__ == "__main__":
# looking for Organizations
# look for organizations
logger.info("Looking for Organizations")
bitwarden_organizations = json.loads(((subprocess.run([bitwarden_cli_executable, 'organizations'], capture_output=True)).stdout).decode())
bitwarden_organizations = json.loads(((subprocess.run([bitwarden_cli_executable, 'list', 'organizations'], capture_output=True)).stdout).decode())
print(bitwarden_organizations)
logger.info("Found {} Organiztaions.".format())
logger.info("Found {} Organiztaions.".format(len(bitwarden_organizations)))
else: