mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	Update the path for generating DR Operation tokens (#3578)
This commit is contained in:
		 Brian Kassouf
					Brian Kassouf
				
			
				
					committed by
					
						 Jeff Mitchell
						Jeff Mitchell
					
				
			
			
				
	
			
			
			 Jeff Mitchell
						Jeff Mitchell
					
				
			
						parent
						
							81f968fbe2
						
					
				
				
					commit
					58ce26a6af
				
			| @@ -5,7 +5,7 @@ func (c *Sys) GenerateRootStatus() (*GenerateRootStatusResponse, error) { | ||||
| } | ||||
|  | ||||
| func (c *Sys) GenerateDROperationTokenStatus() (*GenerateRootStatusResponse, error) { | ||||
| 	return c.generateRootStatusCommon("/v1/sys/generate-dr-operation-token/attempt") | ||||
| 	return c.generateRootStatusCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt") | ||||
| } | ||||
|  | ||||
| func (c *Sys) generateRootStatusCommon(path string) (*GenerateRootStatusResponse, error) { | ||||
| @@ -26,7 +26,7 @@ func (c *Sys) GenerateRootInit(otp, pgpKey string) (*GenerateRootStatusResponse, | ||||
| } | ||||
|  | ||||
| func (c *Sys) GenerateDROperationTokenInit(otp, pgpKey string) (*GenerateRootStatusResponse, error) { | ||||
| 	return c.generateRootInitCommon("/v1/sys/generate-dr-operation-token/attempt", otp, pgpKey) | ||||
| 	return c.generateRootInitCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt", otp, pgpKey) | ||||
| } | ||||
|  | ||||
| func (c *Sys) generateRootInitCommon(path, otp, pgpKey string) (*GenerateRootStatusResponse, error) { | ||||
| @@ -56,7 +56,7 @@ func (c *Sys) GenerateRootCancel() error { | ||||
| } | ||||
|  | ||||
| func (c *Sys) GenerateDROperationTokenCancel() error { | ||||
| 	return c.generateRootCancelCommon("/v1/sys/generate-dr-operation-token/attempt") | ||||
| 	return c.generateRootCancelCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt") | ||||
| } | ||||
|  | ||||
| func (c *Sys) generateRootCancelCommon(path string) error { | ||||
| @@ -73,7 +73,7 @@ func (c *Sys) GenerateRootUpdate(shard, nonce string) (*GenerateRootStatusRespon | ||||
| } | ||||
|  | ||||
| func (c *Sys) GenerateDROperationTokenUpdate(shard, nonce string) (*GenerateRootStatusResponse, error) { | ||||
| 	return c.generateRootUpdateCommon("/v1/sys/generate-dr-operation-token/update", shard, nonce) | ||||
| 	return c.generateRootUpdateCommon("/v1/sys/replication/dr/secondary/generate-operation-token/update", shard, nonce) | ||||
| } | ||||
|  | ||||
| func (c *Sys) generateRootUpdateCommon(path, shard, nonce string) (*GenerateRootStatusResponse, error) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user